Ask HN: REST API response – Should you envelope or not?
https://news.ycombinator.com/item?id=25913429Can 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":[]