Skip to content

Instantly share code, notes, and snippets.

@awhit012
Last active July 25, 2019 20:56
# GET
curl -v http://localhost:8080/code-snippets
# POST
curl -d '{"name": "my code snippet", "snippet": "( ()=> { return `HELLOOOOOOOOO!!!!!!`})()"}' -H 'Content-Type: application/json'   http://localhost:8080/code-snippets
# PUT
curl -d '{"name": "my code snippet", "snippet": "( ()=> { return `HELLOOOOOOOOO!!!!!!`})()"}' -H 'Content-Type: application/json' -X PUT http://localhost:8080/code-snippets/1
# DELETE
curl -X DELETE http://localhost:8080/code-snippets/1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment