R
R
Romi2021-09-01 00:17:24
Uniform Resource Identifier
Romi, 2021-09-01 00:17:24

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")]


It turns out that it in query directly transfers objects and arrays, or what?

I've just never been so perverted with GET :D

Is it like that at all?

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question