4 ms·
maybe its my lack of understanding, but can't you define type by accept header, such as application/json, or application/xml. Also depending on your api, you c
by minalecs 18y ago
maybe its my lack of understanding, but can't you define type by accept header, such as application/json, or application/xml. Also depending on your api, you could follow the whole one model one request, or you could return more, as the author of the api, what is limiting you .. when you say /hero/superman, it can return profile, and powers and more .. why not ??
you should do whatever you feel your user base needs... just because a posted speed limit says go 35, doesn't mean that you can't go 40.
- kubrick 18y agoYou could define the type by the accept header, but: 1) what if there's more than one accept header? which one do you pick? 2) most frameworks are not really thinking this way at the moment, however uber-logical it might seem to the REST-ies. I voted you back up to 0 -- I really have no idea why people would vote an honest question down.