From 1843073f82b74e22127034561dc2da5586e4a611 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 14 Apr 2020 10:12:13 +0200 Subject: [PATCH] v0.9 --- openapi.json | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/openapi.json b/openapi.json index 3012818..cd1c10f 100644 --- a/openapi.json +++ b/openapi.json @@ -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" - ] } - ] + } } \ No newline at end of file