This provides 4 methods
gets the parameters from a swagger doc
name | description |
---|---|
req | the Express.js request object |
swagger | the swagger js object |
the object within the swagger object the describes the parameters for that path
matches a given request url with its corresponding swagger path
name | description |
---|---|
reqPath | a real request url |
swaggerPaths | a list of all the swagger paths in a swagger doc |
the path string
converts parrams in a swagger endpoint to a json schema
name | description |
---|---|
parameters | the params as they appear in the swagger object |
the json schema of the params
parse the params from the swagger doc that are marked as being in the body of the request
name | description |
---|---|
parameters | the params as they appear in the swagger object |
the json schema of the params
find the primary key from parameters of a given endpoint in a swagger doc
name | description |
---|---|
parameters | the params as they appear in the swagger object |
the primary key parameter as it appears in the swagger object