From 0394f72f780628599598cbe476942f8572be1524 Mon Sep 17 00:00:00 2001 From: zeldakatze Date: Mon, 19 May 2025 16:52:47 +0200 Subject: Add examples to README.md --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'README.md') diff --git a/README.md b/README.md index 9e974ad..0552385 100644 --- a/README.md +++ b/README.md @@ -47,3 +47,10 @@ Update title and description: ```shell curl --header "Content-Type: application/json" --request PUT --data '{"id":19,"name":"New Café (UBT)","description":"My description","type":"CAFE","campus":"MAIN","street":"Teststraße","houseNumber":"99","postalCode":12345,"city":"Bayreuth"}%' http://localhost:8080/api/pos/19 # set correct task id here and in the body ``` + +#### examples +```shell +curl --header "Content-Type: application/json" --request POST --data '{"name":"Stadtbäckerei Schaller GmbH","description":"","type":"CAFE","campus":"MAIN","street":"Nürnberger Straße","houseNumber":"3b","postalCode":95448,"city":"Bayreuth"}%' http://localhost:8080/api/pos + +curl http://localhost:8080/api/pos/4 +``` -- cgit v1.2.3