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