westfieldlabs / apivore

Tests your rails API against its Swagger description of end-points, models, and query parameters.
Apache License 2.0
213 stars 66 forks source link

Support having path level parameters #59

Closed jszwedko closed 8 years ago

jszwedko commented 9 years ago

Currently apivore expects everything under a given route, e.g. /posts, to be a HTTP verb, but parameters is also supported (to specify parameters that are required by each verb under the path).

E.g.

...
paths:
  /posts/{id}:
    parameters:
      - name: id
        in: path
        type: integer
        required: true
    get:
      ...
    put:
      ...
...
jszwedko commented 9 years ago

See https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#path-item-object

hornc commented 9 years ago

Thanks for the reference back to the swagger-spec, looks good. I have merged and added an example to the sample swagger.json for apivore's tests https://github.com/westfieldlabs/apivore/pull/61

hornc commented 8 years ago

Released in Apivore 1.4.0