@simon An OPTIONS request should tell you the supported formats.
I like it, for having JSON API endpoints at the same URLs as I’m serving HTML. (No having to go find a whole separate /api/…)
@simon An OPTIONS request should tell you the supported formats.
I like it, for having JSON API endpoints at the same URLs as I’m serving HTML. (No having to go find a whole separate /api/…)
@carlton @simon for those APIs, do you actually use Accept header or use a ".json" URL extension (or query string)? One of the major benefits of separate URL for content of different types is easier time with analytics and troubleshooting. Only need a single variable (URL) to float through the various logging/monitoring tools, instead of multiple.