From 7d4cd323943a769943bf0043bf344df89c10584c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 21 Jun 2019 17:29:40 +0200 Subject: [PATCH] add new swagger --- testcase-05/openapi-spec-v0.9.yaml | 23 ++++++++++++++++ testcase-05/openapi-spec-v1.0.yaml | 31 ++++++++++++++++++++++ testcase-05/openapi-spec-v1.1.yaml | 39 +++++++++++++++++++++++++++ testcase-05/openapi-spec-v2.0.yaml | 42 ++++++++++++++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 testcase-05/openapi-spec-v0.9.yaml create mode 100644 testcase-05/openapi-spec-v1.0.yaml create mode 100644 testcase-05/openapi-spec-v1.1.yaml create mode 100644 testcase-05/openapi-spec-v2.0.yaml diff --git a/testcase-05/openapi-spec-v0.9.yaml b/testcase-05/openapi-spec-v0.9.yaml new file mode 100644 index 0000000..fc48153 --- /dev/null +++ b/testcase-05/openapi-spec-v0.9.yaml @@ -0,0 +1,23 @@ +--- +swagger: '2.0' +info: + title: Red Hat Event + description: Red Hat Event API - An API that gives information about the Red Hat Event + version: 0.9.0 +paths: + /location: + get: + summary: Get Location + description: Get the location of the next RedHat Event + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Timeframe + description: Get the timeframe of the next RedHat Event + operationId: GetTimeframe + responses: + 200: + description: OK diff --git a/testcase-05/openapi-spec-v1.0.yaml b/testcase-05/openapi-spec-v1.0.yaml new file mode 100644 index 0000000..a29f0da --- /dev/null +++ b/testcase-05/openapi-spec-v1.0.yaml @@ -0,0 +1,31 @@ +--- +swagger: '2.0' +info: + title: Red Hat Event + description: Red Hat Event API - An API that gives information about the Red Hat Event + version: 1.0.0 +paths: + /location: + get: + summary: Get Location + description: Get the location of the next RedHat Event + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Timeframe + description: Get the timeframe of the next RedHat Event + operationId: GetTimeframe + responses: + 200: + description: OK +securityDefinitions: + apikey: + type: apiKey + description: Use a 3scale API Key + name: api-key + in: header +security: +- apikey: [] diff --git a/testcase-05/openapi-spec-v1.1.yaml b/testcase-05/openapi-spec-v1.1.yaml new file mode 100644 index 0000000..d1ce50c --- /dev/null +++ b/testcase-05/openapi-spec-v1.1.yaml @@ -0,0 +1,39 @@ +--- +swagger: '2.0' +info: + title: Red Hat Event + description: Red Hat Event API - An API that gives information about the Red Hat Event + version: 1.1.0 +paths: + /location: + get: + summary: Get Location + description: Get the location of the next RedHat Event + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Timeframe + description: Get the timeframe of the next RedHat Event + operationId: GetTimeframe + responses: + 200: + description: OK + /participants: + get: + summary: Get Participants + description: Get the participants of the next RedHat Event + operationId: GetParticipants + responses: + 200: + description: OK +securityDefinitions: + apikey: + type: apiKey + description: Use a 3scale API Key + name: api-key + in: header +security: +- apikey: [] diff --git a/testcase-05/openapi-spec-v2.0.yaml b/testcase-05/openapi-spec-v2.0.yaml new file mode 100644 index 0000000..384a1d5 --- /dev/null +++ b/testcase-05/openapi-spec-v2.0.yaml @@ -0,0 +1,42 @@ +--- +swagger: '2.0' +info: + title: Red Hat Event + description: Red Hat Event API - An API that gives information about the Red Hat Event + version: 2.0.0 +paths: + /location: + get: + summary: Get Location + description: Get the location of the next RedHat Event + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Timeframe + description: Get the timeframe of the next RedHat Event + operationId: GetTimeframe + responses: + 200: + description: OK + /participants: + get: + summary: Get Participants + description: Get the participants of the next RedHat Event + 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 +security: +- oidc: + - openid \ No newline at end of file