-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bbox improvements #50
Conversation
api-spec.md
Outdated
@@ -135,7 +135,7 @@ This Link should look like: | |||
|
|||
Unless otherwise noted by **Path-only**, these filters are passed as query string parameters, form parameters, or JSON | |||
entity fields. For filters that represent a set of values, query and form parameters should use comma-separated | |||
string values and JSON entity attributes should use JSON Arrays. | |||
string values (with no outer brackets \[ or \]) and JSON entity attributes should use JSON Arrays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. So it's comma separated values, but "JSON entity attributes should use JSON Arrays"? Does that conflict? What does "JSON entity attributes should use JSON Arrays" actually mean?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm 90% sure that this means:
- If you are using query string parameters (GET request to
/search/
) you should do bbox=10,10,20,20 - If you are using JSON requests (POST to
/search/
) then you should do "bbox": [10,10,20,20]
But obviously, that is not clear. If my explanation makes sense then I can expand this description out. It occurs to me we should also just remove the 'form parameters', and perhaps put it back in if we do #4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. Let's better improve that, too, but I'm approving anyway for now as the main issue has been solved.
Related Issue(s): #28 #47
Proposed Changes:
PR Checklist:
npm run generate-all
to update the generated OpenAPI files.