From 10714b1efa613772817f87e552864225741df2c1 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 7 May 2018 13:33:37 -0700 Subject: [PATCH 1/4] V1.1 --- openapi-spec.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index 4f2a04c..2219913 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -3,7 +3,7 @@ swagger: 2.0 info: title: Summit API description: An API that gives information about the Red Hat Summit. - version: 1.0.0 + version: 1.1.0 paths: /location: get: @@ -21,6 +21,14 @@ paths: responses: 200: description: OK + /participants: + get: + summary: Get all participants. + description: Returns the list of all participants at Red Hat Summit. + operationId: GetParticipants + responses: + 200: + description: OK securityDefinitions: apikey: type: apiKey From f6e434b2521f2c5c30dfa326128f97cc3e278461 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 7 May 2018 13:38:13 -0700 Subject: [PATCH 2/4] V2 --- openapi-spec.yaml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index 2219913..e3118f5 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -1,14 +1,15 @@ --- swagger: 2.0 info: - title: Summit API - description: An API that gives information about the Red Hat Summit. - version: 1.1.0 + title: Summit API v2.0 - OpenID Connect + 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 all participants. - description: Returns the list of all participants at Red Hat Summit. + 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 From c49de370537142e86d8b73abdfbe6e2ce93ecfe2 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 7 May 2018 14:25:42 -0700 Subject: [PATCH 3/4] V2 --- openapi-spec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index e3118f5..6f780ff 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -1,7 +1,7 @@ --- swagger: 2.0 info: - title: Summit API v2.0 - OpenID Connect + title: Summit API description: An API that gives information about the Red Hat Summit, secured with OpenID Connect. version: 2.0.0 From 050d3091bdbf32325d20546c699a48f5c69a3a04 Mon Sep 17 00:00:00 2001 From: Nicolas MASSE Date: Mon, 7 May 2018 19:17:22 -0700 Subject: [PATCH 4/4] back to v1 --- openapi-spec.yaml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) diff --git a/openapi-spec.yaml b/openapi-spec.yaml index 6f780ff..4f2a04c 100644 --- a/openapi-spec.yaml +++ b/openapi-spec.yaml @@ -2,14 +2,13 @@ swagger: 2.0 info: title: Summit API - description: An API that gives information about the Red Hat Summit, secured with - OpenID Connect. - version: 2.0.0 + description: An API that gives information about the Red Hat Summit. + version: 1.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: @@ -22,22 +21,11 @@ paths: responses: 200: description: OK - /participants: - get: - summary: Get all participants - description: Get a list of all participants. - operationId: GetParticipants - responses: - 200: - description: OK securityDefinitions: - oidc: - type: oauth2 - flow: accessCode - authorizationUrl: https://filled-later.dummy/auth - tokenUrl: https://filled-later.dummy/token - scopes: - openid: Get an OpenID Connect token + apikey: + type: apiKey + description: Use a 3scale API Key + name: api-key + in: header security: -- oidc: - - openid +- apikey: []