▲ | SwiftyBug 2 days ago | |
I think this debate is as old as time. I can see value in arguments both for and against this pattern. It's just a pattern. GraphQL does the same thing. As long as the consumers of that endpoint is aware of that behaviour I see no harm. In most cases, these endpoints serve only the frontend of the app. I would avoid doing something like that for a public API though. | ||
▲ | 2 days ago | parent [-] | |
[deleted] |