Skip to content
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

200 and 201 and location headers #90

Merged
merged 2 commits into from
Jul 5, 2016
Merged

Conversation

joe-mojo
Copy link
Contributor

@joe-mojo joe-mojo commented Jul 5, 2016

It is useful to return Location header post POST creation, because the caller made the request on the POST handler, not the created resource.
With PUT, the request is made on the target resource, so Lcation header can be omitted.

@geemus geemus merged commit 6c6e12d into interagent:master Jul 5, 2016
@geemus
Copy link
Member

geemus commented Jul 5, 2016

Thanks!

@geemus
Copy link
Member

geemus commented Jul 5, 2016

FWIW, I did some small tweaking around the language/formatting. I think it all should be the same messaging/recommendations though. Definitely let me know if you disagree or there are mistakes. Changes here: b1cea73

brandur added a commit to brandur/heroku-http-api-design that referenced this pull request Jun 5, 2021
Based on:
interagent/http-api-design#90

And with the follow up that tweaked the language somewhat:
b1cea73ba46e47b9fa6520e5bbedf771b066cf62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants