Browse Source

v2.0

master
Nicolas Massé 5 years ago
parent
commit
c41f9e8f9f
  1. 20
      openapi.json

20
openapi.json

@ -2,7 +2,7 @@
"openapi": "3.0.2", "openapi": "3.0.2",
"info": { "info": {
"title": "Library API", "title": "Library API",
"version": "1.0.0", "version": "2.0.0",
"description": "A simple API for managing authors and books.", "description": "A simple API for managing authors and books.",
"contact": { "contact": {
"name": "Eric Wittmann", "name": "Eric Wittmann",
@ -321,16 +321,24 @@
} }
}, },
"securitySchemes": { "securitySchemes": {
"api-key": { "oidc": {
"type": "apiKey", "flows": {
"name": "api-key", "clientCredentials": {
"in": "header" "tokenUrl": "https://filled.later",
"refreshUrl": "https://filled.later",
"scopes": {
"openid": "openid"
}
}
},
"type": "oauth2"
} }
} }
}, },
"security": [ "security": [
{ {
"api-key": [ "oidc": [
"openid"
] ]
} }
] ]

Loading…
Cancel
Save