Skip to content
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

Query object schema #6

Open
jotegui opened this issue Jun 13, 2016 · 0 comments
Open

Query object schema #6

jotegui opened this issue Jun 13, 2016 · 0 comments
Labels

Comments

@jotegui
Copy link
Member

jotegui commented Jun 13, 2016

Not a priority issue right now, but something to think about for v2.

The current way of building queries is a bit redundant in terms of query parameters

[http://api-module.vertnet-portal.appspot.com/api/v1/search?q={"q":"noturus placidus"}](http://api-module.vertnet-portal.appspot.com/api/v1/search?q={"q":"noturus placidus"})

Why are query parameters (query string, limit, cursor...) enclosed in a JSON object with the argument name q? Wouldn't it be better to rename either the outer or inner q to another term? Also, should we allow x-www-form-urlencoded style of passing parameters (search?q=Noturus+placidus&l=20) apart from JSON?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant