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
Post a Comment