From f759a77a45c2031b4fd60c35d61f59b7536275c0 Mon Sep 17 00:00:00 2001 From: Sascha Schulz <sschulz@dh-software.de> Date: Mi, 05 Apr 2023 15:05:09 +0200 Subject: [PATCH] add curl examples --- templates/005-http-rest/curl-examples.txt | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/templates/005-http-rest/curl-examples.txt b/templates/005-http-rest/curl-examples.txt new file mode 100644 index 0000000..cb92f31 --- /dev/null +++ b/templates/005-http-rest/curl-examples.txt @@ -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 -- Gitblit v1.9.3