You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Multiple Village Download URL is currently structured to concatenate the villages and the topic with underscores as a GET request.
For example: http://backend.tld/advancesearch/download/1_3_2_economy
Here 1, 2, and 3 are village ids and economy is the topic.
This does not align well with REST principles as it combines different query terms (objects) together.
This might be better represented as: http://backend.tld/advancesearch/download/1_3_2/economy
or http://backend.tld/advancesearch/download/1,3,2/economy
or http://backend.tld/advancesearch/download/?village=1,3,2&term=economy
It might be tempting to pass query data via POST, so that you can hand of a JSON object directly, like:
{
"village": [1, 2, 3],
"term": "economy"
}
But a POST request should represent a data-change event, and this limits the ability for effective caching because the query context is removed from the URI.
The text was updated successfully, but these errors were encountered:
The Multiple Village Download URL is currently structured to concatenate the villages and the topic with underscores as a GET request.
For example:
http://backend.tld/advancesearch/download/1_3_2_economy
Here 1, 2, and 3 are village ids and economy is the topic.
This does not align well with REST principles as it combines different query terms (objects) together.
This might be better represented as:
http://backend.tld/advancesearch/download/1_3_2/economy
or
http://backend.tld/advancesearch/download/1,3,2/economy
or
http://backend.tld/advancesearch/download/?village=1,3,2&term=economy
It might be tempting to pass query data via
POST
, so that you can hand of a JSON object directly, like:But a
POST
request should represent a data-change event, and this limits the ability for effective caching because the query context is removed from the URI.The text was updated successfully, but these errors were encountered: