DEV Community 👩‍đŸ’ģ👨‍đŸ’ģ

Discussion on: Proper API Response structure {} - Importance & Advantages!

Collapse
 
stefino76 profile image
Stefano Baccetti

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!