From 6139259af31dd1c992713a8e86b7e0dce1fe1ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 4 Sep 2018 11:24:22 +0200 Subject: [PATCH] add openapi specs --- backup/openapi-spec-v1.0.yaml | 31 ++++++++++++++++++++++++++ backup/openapi-spec-v1.1.yaml | 39 ++++++++++++++++++++++++++++++++ backup/openapi-spec-v2.0.yaml | 42 +++++++++++++++++++++++++++++++++++ openapi-spec.yaml | 31 ++++++++++++++++++++++++++ 4 files changed, 143 insertions(+) create mode 100644 backup/openapi-spec-v1.0.yaml create mode 100644 backup/openapi-spec-v1.1.yaml create mode 100644 backup/openapi-spec-v2.0.yaml create mode 100644 openapi-spec.yaml diff --git a/backup/openapi-spec-v1.0.yaml b/backup/openapi-spec-v1.0.yaml new file mode 100644 index 0000000..a625da3 --- /dev/null +++ b/backup/openapi-spec-v1.0.yaml @@ -0,0 +1,31 @@ +--- +swagger: 2.0 +info: + title: RHTE API + description: An API that gives information about the Red Hat Tech Exchange. + version: 1.0.0 +paths: + /location: + get: + summary: Get Next RHTE Location + description: Get the location of the next RedHat Tech Exchange + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Next RHTE Timeframe + description: Get the timeframe of the next RedHat Tech Exchange + 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/backup/openapi-spec-v1.1.yaml b/backup/openapi-spec-v1.1.yaml new file mode 100644 index 0000000..f703219 --- /dev/null +++ b/backup/openapi-spec-v1.1.yaml @@ -0,0 +1,39 @@ +--- +swagger: 2.0 +info: + title: RHTE API + description: An API that gives information about the Red Hat Tech Exchange. + version: 1.1.0 +paths: + /location: + get: + summary: Get Next RHTE Location + description: Get the location of the next RedHat Tech Exchange + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Next RHTE Timeframe + description: Get the timeframe of the next RedHat Tech Exchange + operationId: GetTimeframe + responses: + 200: + description: OK + /participants: + get: + summary: Get Next RHTE Participants + description: Get the participants of the next RedHat Tech Exchange + 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/backup/openapi-spec-v2.0.yaml b/backup/openapi-spec-v2.0.yaml new file mode 100644 index 0000000..641637e --- /dev/null +++ b/backup/openapi-spec-v2.0.yaml @@ -0,0 +1,42 @@ +--- +swagger: 2.0 +info: + title: RHTE API + description: An API that gives information about the Red Hat Tech Exchange. + version: 2.0.0 +paths: + /location: + get: + summary: Get Next RHTE Location + description: Get the location of the next RedHat Tech Exchange + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Next RHTE Timeframe + description: Get the timeframe of the next RedHat Tech Exchange + operationId: GetTimeframe + responses: + 200: + description: OK + /participants: + get: + summary: Get Next RHTE Participants + description: Get the participants of the next RedHat Tech Exchange + 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 diff --git a/openapi-spec.yaml b/openapi-spec.yaml new file mode 100644 index 0000000..a625da3 --- /dev/null +++ b/openapi-spec.yaml @@ -0,0 +1,31 @@ +--- +swagger: 2.0 +info: + title: RHTE API + description: An API that gives information about the Red Hat Tech Exchange. + version: 1.0.0 +paths: + /location: + get: + summary: Get Next RHTE Location + description: Get the location of the next RedHat Tech Exchange + operationId: GetLocation + responses: + 200: + description: OK + /timeframe: + get: + summary: Get Next RHTE Timeframe + description: Get the timeframe of the next RedHat Tech Exchange + operationId: GetTimeframe + responses: + 200: + description: OK +securityDefinitions: + apikey: + type: apiKey + description: Use a 3scale API Key + name: api-key + in: header +security: +- apikey: []