From 58d70d9608f1aa27442316a1abd4c33d367402b8 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Tue, 8 May 2018 12:00:26 -0700 Subject: [PATCH] V2 --- openapi-spec.yaml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index c4c8684..6f780ff 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -2,13 +2,14 @@ swagger: 2.0 info: title: Summit API - description: An API that gives information about the Red Hat Summit. - version: 1.1.0 + description: An API that gives information about the Red Hat Summit, secured with + OpenID Connect. + version: 2.0.0 paths: /location: get: summary: Get Next RH Summit Location - description: 'Get the location of the next RedHat Summit ' + description: Get the location of the next RedHat Summit. operationId: GetLocation responses: 200: @@ -23,17 +24,20 @@ paths: description: OK /participants: get: - summary: Get Participants - description: Get all participants. + summary: Get all participants + description: Get a list of all participants. operationId: GetParticipants responses: 200: description: OK securityDefinitions: - apikey: - type: apiKey - description: Use a 3scale API Key - name: api-key - in: header + oidc: + type: oauth2 + flow: accessCode + authorizationUrl: https://filled-later.dummy/auth + tokenUrl: https://filled-later.dummy/token + scopes: + openid: Get an OpenID Connect token security: -- apikey: [] +- oidc: + - openid