Adam Mackintosh
1 min readNov 27, 2018

--

Great article. I agree with this approach.

I like it because regardless what your UI currently supports for ‘records per page’, the API can be made to support any page size with upper and lower bounds.

If the UI later wants to add more options into the “records per page” dropdown selector, they can simply add as many as they want with no further API work needed. I therefore had to offer you the maximum of 50 claps.

--

--

Adam Mackintosh
Adam Mackintosh

Written by Adam Mackintosh

I prefer to work near ES6+, node.js, microservices, Neo4j, React, React Native; I compose functions and avoid classes unless private state is desired.

No responses yet