|
|
|
@ -2,7 +2,7 @@ |
|
|
|
"openapi": "3.0.2", |
|
|
|
"info": { |
|
|
|
"title": "Library API", |
|
|
|
"version": "2.0.0", |
|
|
|
"version": "0.9.0", |
|
|
|
"description": "A simple API for managing authors and books.", |
|
|
|
"contact": { |
|
|
|
"name": "Eric Wittmann", |
|
|
|
@ -27,6 +27,22 @@ |
|
|
|
"items": { |
|
|
|
"$ref": "#/components/schemas/Author" |
|
|
|
} |
|
|
|
}, |
|
|
|
"examples": { |
|
|
|
"authors": { |
|
|
|
"value": [ |
|
|
|
{ |
|
|
|
"id": "mpagnol", |
|
|
|
"name": "Marcel Pagnol", |
|
|
|
"dob": "1895-02-28" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"id": "ezola", |
|
|
|
"name": "Émile Zola", |
|
|
|
"dob": "1840-04-02" |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -303,27 +319,6 @@ |
|
|
|
}, |
|
|
|
"description": "Generic response when not found." |
|
|
|
} |
|
|
|
}, |
|
|
|
"securitySchemes": { |
|
|
|
"oidc": { |
|
|
|
"flows": { |
|
|
|
"clientCredentials": { |
|
|
|
"tokenUrl": "http://filled.later", |
|
|
|
"refreshUrl": "http://filled.later", |
|
|
|
"scopes": { |
|
|
|
"openid": "" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"type": "oauth2" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
"security": [ |
|
|
|
{ |
|
|
|
"oidc": [ |
|
|
|
"openid" |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
} |