3 ms·
You could even use something like "Accept: application/vnd.text+json;api-version=1". Personally, I'd go with the custom Accept header, using the same type, but
by madhouse 15y ago
You could even use something like "Accept: application/vnd.text+json;api-version=1". Personally, I'd go with the custom Accept header, using the same type, but different "accept-extension" (see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for details).
- edu 15y agoGood point, actualy Zend is doing it exactly like this: http://files.zend.com/help/Zend-Server-Community-Edition/api_versioning_negotation.htm http://files.zend.com/help/Zend-Server-Community-Edition/api...