Skip to content

Instantly share code, notes, and snippets.

@manuelernesto
Created July 12, 2022 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelernesto/202c0dc9536a226d7c4f71c4c7ccede5 to your computer and use it in GitHub Desktop.
Save manuelernesto/202c0dc9536a226d7c4f71c4c7ccede5 to your computer and use it in GitHub Desktop.
#input
curl -X PUT --location "http://localhost:8080/api/v1/players/1" \
-H "Content-Type: application/json" \
-d "{
\"name\": \"Leo Messi\",
\"age\": 35,
\"nationality\": \"Argentina\"
}"
#output
{
"id":1,
"name":"Leo Messi",
"age":35,
"nationality":"Argentina"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment