documenting my notes

This commit is contained in:
tomit4 2021-08-21 06:37:26 -07:00
commit 0379beff4d
28 changed files with 1639 additions and 0 deletions

11
curl_notes.txt Normal file
View 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"}'