forked from SmartBear/testserver-cucumber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
swaggerhub.feature
36 lines (31 loc) · 1.26 KB
/
swaggerhub.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Feature: SwaggerHub REST API
Background:
Given the Swagger definition at https://api.swaggerhub.com/apis/swagger-hub/registry-api/1.0.10
Scenario: Default API Listing
When a request to searchApis is made
Then the response is a list of APIs in APIs.json format
Scenario: Owner API Listing
When a request to getOwnerApis is made
And owner is swagger-hub
Then the response is a list of APIs in APIs.json format
Scenario: API Version Listing
When a request to getApiVersions is made
And owner is swagger-hub
And api is registry-api
Then the response is a list of API versions in APIs.json format
And the response body contains /apis/swagger-hub/registry-api
Scenario Outline: API Retrieval
When a request to getDefinition is made
And owner is <owner>
And api is <api>
And version is <version>
Then a 200 response is returned within 500ms
And the response type is json
And the response body contains
"""
"description":"<description>"
"""
Examples:
| owner | api | version | description |
| swagger-hub | registry-api | 1.0.10 | The registry API for SwaggerHub |
| fehguy | sonos-api | 1.0.0 | A REST API for the Sonos platform |