Vendor media types not recognised
Vendor media types (http://tools.ietf.org/html/rfc4288#section-3.2) are the preferred method for REST API versioning according to many sources. However, when a service specifies a vendor media type in the Content-Type header, the Rest Console doesn't recognise it and doesn't parse the response accordingly.
Examples:
- Should be parsed as JSON: application/vnd.company.app1-v100+json
- Should be parsed as XML: application/vnd.company.app2-v250+xml
ah, that's a very good feature ... will certainly add that next!
Thanks, looking forward to it. And thanks for a great tool, it's invaluable for testing REST APIs.
I've noticed another very strange, seemingly related bug:
- I make a POST request with Content-Type "application/x-www-form-urlencoded" and Accept set to a vendor media type.
- The request executes fine and the server returns a response with Content-Type set to the same vendor media type.
- I then press "Send" again, with exactly the same settings, and the Content-Type header is no longer sent with the request.
- This happens for every subsequent request until I change the Content-Type of the response to something like "text/html". After that it starts working again.
Does the Content-Type response header of the previous request somehow affect the Content-Type request header of the next one?
interesting ... I see no reason for that behaviour, none that would be related to the response content type ... can you please open a separate ticket for this (easier to track)
I know I keep sounding like a broken record, but new version is coming soon, its a complete rewrite adding many many many new features and allowing for better debugging of issues like these!
OK, I opened a new ticket. It seemed somehow related to this one, but it could also be completely unrelated.