Answer the question
In order to leave comments, you need to log in
Are there any base practices when building a response in api?
There is an item resource and let's say it has methods:
GET item/{id} - get a specific item
GET item/top- get a list of popular
items GET item/search- search for items by parameters
Answer the question
In order to leave comments, you need to log in
according to the resource, you should not have anything else, since this is literally a state transfer
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question