Skip to content

Commit b4a2cfd

Browse files
Add test
1 parent d267e57 commit b4a2cfd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

features/swagger/docs.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,10 @@ Feature: Documentation support
103103
And I should see text matching "My Dummy API"
104104
And I should see text matching "swagger"
105105
And I should see text matching "2.0"
106+
107+
Scenario: Retrieve the Swagger/OpenAPI documentation with API Gateway compatibility
108+
Given I send a "GET" request to "/docs.json?api_gateway=true"
109+
Then the response status code should be 200
110+
And the response should be in JSON
111+
And the header "Content-Type" should be equal to "application/json; charset=utf-8"
112+
And the JSON node "basePath" should be equal to "/"

0 commit comments

Comments
 (0)