My API allows users to filter a database table using query string params (ie. ?age=30&location=Philadelphia
). These params are different for each database table. How can I express that in API Blueprint?
The API Blueprint spec says it supports the explode modifier. This RFC 6570 validator suggests the explode modifier could accomplish this via an object, ie.
/api{?filters*}
And passing
{ filters: { age: 30, location: 'Philadelphia' } }
(The validator linked above illustrates this a bit better)
Of course, I'm not sure how to express the above in API Blueprint. Is it possible?