Last active
July 25, 2019 20:56
-
-
Save awhit012/7ce71597e0f62c46a7ba11e41d49e496 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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