Url parameters in path and query
Hi there,
our api allows path parameters only.
Like so :
ourdomain.com/api/v1/param1/param2/param3/param4/
"param4" is subdivided in parameters. They serve more or less as
filters. Sub parameters may be "begin", "end", "format" and others.
"begin" and "end" are e.g. unixtimestamps "format" could be "xml".
ourdomain.com/api/v1/param1/param2/param3/begin-1560730667,format-json
So the "param4" are more or less query parameters. A similar implementation
with query parameters would be:
ourdomain.com/api/v1/param1/param2/param3/?begin=1560730667&format=json
So my prob is how to document our version. In our version param4 would be
single path parameter and therefore required. But it is of course not required.
So is there a way to document our version with swagger. That means to
describe param4 as not required or better describe the sub parameters.
If I declare param4 as "in query" of course it produces something like:
ourdomain.com/api/v1/{param1}/{param2}/{param3}/?param4=
which is not what I want.
Thanks a lot !
Best,
Thor