Skip to content

Instantly share code, notes, and snippets.

@d30jeff
Created March 30, 2015 02:45
Show Gist options
  • Select an option

  • Save d30jeff/ee7ba0830284cb27fd28 to your computer and use it in GitHub Desktop.

Select an option

Save d30jeff/ee7ba0830284cb27fd28 to your computer and use it in GitHub Desktop.
python curl
GET:
curl -X GET http://localhost/api/modules
DELETE:
curl -X DELETE http://localhost/api/single_module/{id}
POST:
curl -X POST -h "Content-Type:application/json" -d '{"key":"value","key2":"value"}' http://localhost/api/modules
PUT:
curl ._.?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment