codeforamerica / denver-schedules-api

An api for city events & schedules.
MIT License
7 stars 5 forks source link

Consider using Nancy's content negotiation #12

Open gregoryjscott opened 10 years ago

gregoryjscott commented 10 years ago

Currently the app is explicitly returning JSON, but might be worth considering using Nancy's content negotiation to allow other types. This will require that client's specify the type they want with a header but I think that's the correct way. I've seen an instance where someone changed the Nancy default to be JSON (if no header is present) which is something else to consider.

junosuarez commented 10 years ago

:+1: for having a default content type and also supporting other types via content negotiation. Whatever the resolution of this issue is, the supported types and response types should be documented in the readme and any other api documentation.