laminas-api-tools / api-tools-hal

Laminas Module providing Hypermedia Application Language assets and rendering
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
6 stars 12 forks source link

Add start_index and end_index #4

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

So you can show : Item [start_index] to [end_index] on [total_items] or if you prefer : Item 20 to 29 on 100


Originally posted by @e-belair at https://github.com/zfcampus/zf-hal/pull/169

weierophinney commented 4 years ago

Coverage Status

Coverage increased (+0.1%) to 75.4% when pulling 04989a0bc6b6168ceba8a3de1c9e886fa4fa36c7 on manuscle:master into 6f84c050edf1085656a3590c5f2bbe101c7d1463 on zfcampus:master.


Originally posted by @coveralls at https://github.com/zfcampus/zf-hal/pull/169#issuecomment-406635260

weierophinney commented 4 years ago

Should such logic not be a front end implementation? I mean you have all the ingredients to calculate these "start_index" and "end_index" values on the front end side. I consider this interface specific (front-end) and IMO it is not the responsibility of the server to provide these values.


Originally posted by @Wilt at https://github.com/zfcampus/zf-hal/pull/169#issuecomment-419041664