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

Return objects on POST #11

Open
j-bernard opened this issue Apr 26, 2019 · 2 comments
Open

Return objects on POST #11

j-bernard opened this issue Apr 26, 2019 · 2 comments

Comments

@j-bernard
Copy link

It would be useful to get the created object after a POST request:

  • POST /users => need to get back id and certs
  • POST /devices => need to get back wpa_key and name
@mcr
Copy link

mcr commented Apr 26, 2019 via email

@j-bernard
Copy link
Author

You can add a body and still return a 201, it is valid rest. It would avoid making a new call to get the object right after creating it.
But can do without it so it's up to you.
Definitively, not a high priority.

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

No branches or pull requests

2 participants