cURL
curl --request GET \ --url https://api.example.com/authors/{id}
{ "200": {}, "401": {}, "404": {}, "id": 123, "name": "<string>", "age": 123 }
curl -X GET http://localhost:8080/authors/1 \ -u username:password
{ "id": 1, "name": "J.K. Rowling", "age": 58 }
{ "status": 404, "error": "Not Found" }