documenting my notes
This commit is contained in:
commit
0379beff4d
28 changed files with 1639 additions and 0 deletions
11
curl_notes.txt
Normal file
11
curl_notes.txt
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Very Simple GET request:
|
||||
curl http://localhost:3000/maria_database
|
||||
|
||||
Simple JSON POST request:
|
||||
curl -X POST http://localhost:3000/maria_database -H "Content-Type: application/json" -d '{"task": "DONE IN CURL"}'
|
||||
|
||||
Simple JSON DELETE request:
|
||||
curl -X DELETE http://localhost:3000/maria_database -H "Content-Type: application/json" -d '{"deletedItem": "DONE IN CURL"}'
|
||||
|
||||
Simple JSON PUT request:
|
||||
curl -X PUT http://localhost:3000/maria_database -H "Content-Type: application/json" -d '{"updated": "WE DID THIS IN CURL AGAIN", "previous": "DONE IN CURL"}'
|
||||
Loading…
Add table
Add a link
Reference in a new issue