2 ms·
Sure, tho I would consider the url as a good indication of the expected response. Adding the strong-typed Content-Type for every data response is reminiscent of
by mythz 16y ago
Sure, tho I would consider the url as a good indication of the expected response. Adding the strong-typed Content-Type for every data response is reminiscent of the SOAPAction days. This is one of the areas where I don't think it provides much value since most/all of the times the client already knows what the 200 response will yield. So in this case I consider it just introduces another friction point that adds littler or no value.
My personal opinion is that it only makes sense for 'Dumb' HATEOS clients that rely on it to delegate it to the appropriate renderer. i.e. not the clients I'm used to seeing developed.