Skip to content

Definition Tests

Omar del Valle edited this page Jun 1, 2019 · 11 revisions

All test passed in your Swagger 2.0 API definition

Test on GET methods

√  Should be contain (200,202,206) response.
√  Should be contain consumes (accept) definition.

Test on POST methods

√  Should be contain (200,201,202,204,206) response.
√  Should be contain (400) response.
√  Should be contain produces (content-type) definition.

Test on PUT/PATCH methods

√  Should be contain (200,202,204,206) response.
√  Should be contain (400) response.
√  Should be contain produces (content-type) definition.

Test on DELETE methods

√  Should be contain (200,202,204) response.
√  Should be contain produces (content-type) definition.

Test on Parameters

√  Parameter distinct of type string, in PATH or QUERY, should be contain bad request (400) response.
√  Enum parameters in PATH or QUERY, should be contain bad request (400) response.
√  Parameters required in PATH or QUERY, should be contain not found (404) response.
√  (Warning) Parameters required in QUERY, maybe should be change to 'in: path' definition.
√  Query string parameter [PARAM-NAME] should be lower case.

Test on Security definitions

√  Security definition, should be contain (401) response.

Clone this wiki locally