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

Cleanup: set the response Headers (Status, Content-Type) for all the endpoints #20

Open
3 tasks
muly opened this issue Oct 18, 2016 · 0 comments
Open
3 tasks

Comments

@muly
Copy link
Owner

muly commented Oct 18, 2016

Endpoints

  • Goal
  • Activity
  • ActivityLog

expected Status per HTTP verb:

  • GET - 200 OK
  • PUT, POST - 201 Created
  • DELETE - 200 OK

expected content type

  • GET - json
  • PUT, POST - json
  • DELETE - ??

example code:

w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusCreated)
@muly muly added this to the 2016OctSprint2 milestone Oct 18, 2016
@muly muly changed the title set the response Headers (Status, Content-Type) for all the endpoints Cleanup: set the response Headers (Status, Content-Type) for all the endpoints Oct 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant