Ask HN: REST API response – Should you envelope or not?

https://news.ycombinator.com/item?id=25913429
by googlycooly • 5 years ago
5 2 5 years ago

Can anyone who has years of experience in building REST APIs explain which option is better? To envelop or not?

If we envelop, what should be the key? Should it be common for all responses like "data":[] or specific to resources like "users":[]

Related Stories

Loading related stories...

Source preview

news.ycombinator.com