Browse Source

add new swagger

master
Nicolas Massé 7 years ago
parent
commit
7d4cd32394
  1. 23
      testcase-05/openapi-spec-v0.9.yaml
  2. 31
      testcase-05/openapi-spec-v1.0.yaml
  3. 39
      testcase-05/openapi-spec-v1.1.yaml
  4. 42
      testcase-05/openapi-spec-v2.0.yaml

23
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

31
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: []

39
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: []

42
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
Loading…
Cancel
Save