dont require format parameter #5

Closed
bazo opened this Issue Mar 25, 2013 · 2 comments

Comments

Projects
None yet
2 participants

bazo commented Mar 25, 2013

The enforced requirement of a request in this form is not a correct REST behaviour:

api/.?params=...

the format should not be a part of the resource name

correctly it should be optional, defaulting to json, then it would be written like this:

api/?params=...&format=json

is there any reason why a format should be specified?

Owner

newPOPE commented Mar 31, 2013

sure, you are right in enforced format in the path.

correct behaviour is:

  1. in the HTTP header Accept application/json or application/xml.
  2. in the URL .json or in the query string ...&format=json
  3. some default json

I don't remember why I chose that way.

Owner

newPOPE commented Mar 31, 2013

It should be fixed in 339667a

@newPOPE newPOPE closed this Mar 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment