Sascha Schulz
2023-04-05 f759a77a45c2031b4fd60c35d61f59b7536275c0
add curl examples
1 Dateien hinzugefügt
5 ■■■■■ Geänderte Dateien
templates/005-http-rest/curl-examples.txt 5 ●●●●● Patch | Ansicht | Raw | Blame | Historie
templates/005-http-rest/curl-examples.txt
Neue Datei
@@ -0,0 +1,5 @@
curl -X GET -is http://localhost:3000/todo
curl -X POST -H "Content-Type: application/json" -d '{"name": "Einkaufen"}' -is http://localhost:3000/todo
curl -X POST -H "Content-Type: application/json" -d '{"name": "Putzen"}' -is http://localhost:3000/todo
curl -X PUT -H "Content-Type: application/json" -d '{"name": "Schlafen"}' -is http://localhost:3000/todo/1
curl -X DELETE -is http://localhost:3000/todo/0