Is the usage of custom media types a good option?

Viewed 2280

I've been convinced by a fellow developer (now left) that the proper way to evolve RESTful web services is by creating custom media types for your services.

For example application/vnd.acme.payroll.v1+json

This way, you can tell your client to specify the encoding to use without changing the URI.

Is this technique a good one? Usually services embed the version into the url:

eg /acme/1.0/payroll/

I've had a lot of difficulty enforcing clients to use this scheme, especially as it seems DELETE does not enforce a media type

2 Answers
Related