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

javascript - How do you prevent nested queries/catches in sequelize? -

java - Could not retrieve pre-bound Hibernate session - Could not obtain transaction-synchronized Session for current thread -

java - ConcurrentModificationException upon committing transaction with Hibernate -