GET requesty curl -i "http://127.0.0.1:8888/person?id=1" curl -i "http://127.0.0.1:8888/person?id=10" POST request curl -i --header "Content-Type: application/json" --request POST "http://127.0.0.1:8888/persons" curl -i --request GET "http://127.0.0.1:8888/persons" Request s hlavičkou specifikující očekávání xml odpovědi (nutný plugin!) curl -i --header "Accept: application/xml" --request POST "http://127.0.0.1:8888/persons" Přidávání Osob curl -i --header "Content-Type: application/json" --request POST --data '{"id":10,"name":"Spock", "surname":"Of Vulcan", "born":"2000-01-01"}' http://localhost:8888/person curl -i "http://127.0.0.1:8888/person?id=10" PUT request, použitý pro změnu osoby. curl -i --header "Content-Type: application/json" --request PUT --data '{"id":10,"name":"Spock", "surname":"King Of Vulcan", "born":"2000-01-01"}' http://localhost:8888/person curl -i "http://127.0.0.1:8888/person?id=10" Mazání: curl -i --header "Content-Type: application/json" --request DELETE --data 10 http://localhost:8888/person curl -i "http://127.0.0.1:8888/person?id=10"