wet-boew / wet-boew-api-standards

Possible requirements for Government of Canada APIs based on the White House standards
Other
11 stars 11 forks source link

Discrepency in the URI path filtering #32

Closed LaurentGoderre closed 9 years ago

LaurentGoderre commented 10 years ago

In the document, the format is defined either by the HTTP accept headers or through URL parameter. This means that requests would not have any extensions.

The example should be modified to use querystring

http://example.gc.ca/api/collection/value_one/value_two/list?format=json
chrismajewski commented 9 years ago

I do clean urls through apache redirects but it makes more sense to do as you suggest. In and done.