I agree with your post! I create my first API with top level data object. Later the amount of data in response are very big (over 1000) and I need pagination. I need to know the total number of items extract from db too. So, I had to rewrite my API and I chose an approach like yours.
Good post!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I agree with your post! I create my first API with top level data object. Later the amount of data in response are very big (over 1000) and I need pagination. I need to know the total number of items extract from db too. So, I had to rewrite my API and I chose an approach like yours.
Good post!