Answer the question
In order to leave comments, you need to log in
Now I saw the URI: /magazines?sort=[("year", "asc"),("topic", "desc")] - is it really possible?
from here: https://github.com/darrin/yaras#good-uri-examples
And there are more examples like this:
Filtering is done via query parameters:
GET /magazines?where={"year":2011}
GET /articles?where={"topic":"economy","year":2011}
Two alternative ways you might allow to get to magazines by publisher (though I prefer using the where filter):
GET /publishers/somepublisher/magazines
GET /magazines?where={"publisher":"somepublisher"}
Sorting is done via query parameters:
GET /magazines?sort=[( "year", "
asc "),("topic", "desc")]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question