cURL
curl --request PUT \ --url https://api.example.com/authors/{id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "age": 123 } '
{ "200": {}, "401": {}, "404": {}, "id": 123, "name": "<string>", "age": 123 }
curl -X PUT http://localhost:8080/authors/1 \ -u username:password \ -H "Content-Type: application/json" \ -d '{ "name": "J.K. Rowling", "age": 59 }'
{ "id": 1, "name": "J.K. Rowling", "age": 59 }