-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use content negotiation to determine output format #25
Comments
It would make a lot of sense to me if rather than having a separate path for json with
This would also remove the need for the current index page and likely promote the models page to the index position. |
Yes this ticket was intended to converge the endpoints, at the least the common ones. The API itself will be eventually be self-describing (via the |
I left off support for a file extension since I do not see it adding any value compared to the |
The representation format will be detected from the Accept header or a URL parameter. Fix #25 Signed-off-by: Byron Ruth <b@devel.io>
The order precedence is:
Accept
header e.g.Accept: application/json
/models/pcornet/v1.html
The text was updated successfully, but these errors were encountered: