json - How can we set a limit to the results came in @POST request in retrofit android -


i trying retrieve data web api in json format using retrofit. result returns 5 items has 20 items. need show top 10 items. there way set limit no. of results retrieve?

the interface http request looks this:

public interface testservice { @post("apiurl") call<apirespone> testbytype(@body testrequest request); 

}

this depends on api, if allows set pagination might able set number of items returned server. double check api documentation if standard 1 have pagination.


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -