"description":"A simple API for managing authors and books"
"version":"0.9.0",
"description":"A simple API for managing authors and books.",
"contact":{
"name":"Eric Wittmann",
"email":"eric.wittmann@redhat.com"
},
"license":{
"name":"Mozilla 2.0",
"url":"https://www.mozilla.org/en-US/MPL/2.0/"
}
},
"paths":{
"/authors":{
@ -21,12 +29,17 @@
}
},
"examples":{
"all_authors":{
"authors":{
"value":[
{
"id":"vhugo",
"name":"Victor Hugo",
"dob":"26-02-1885"
"id":"mpagnol",
"name":"Marcel Pagnol",
"dob":"1895-02-28"
},
{
"id":"ezola",
"name":"Émile Zola",
"dob":"1840-04-02"
}
]
}
@ -66,21 +79,7 @@
"summary":"Path used to manage a single Author.",
"description":"The REST endpoint/path used to get, update, and delete single instances of an `Author`. This path contains `GET`, `PUT`, and `DELETE` operations used to perform the get, update, and delete tasks, respectively.",
"get":{
"parameters":[
{
"examples":{
"vhugo":{
"value":"vhugo"
}
},
"name":"authorId",
"description":"A unique identifier for a `Author`.",
"schema":{
"type":"string"
},
"in":"path",
"required":true
}
"tags":[
],
"responses":{
"200":{
@ -88,19 +87,13 @@
"application/json":{
"schema":{
"$ref":"#/components/schemas/Author"
},
"examples":{
"vhugo":{
"value":{
"id":"vhugo",
"name":"Victor Hugo",
"dob":"26-02-1885"
}
}
}
}
},
"description":"Successful response - returns a single `Author`."