CIRALabs / shg_mud_supervisor

shg_mud_controller is a combination MUD registrar/controller and ANIMA registrar based upon the ANIMAgus minerva fountain Join/Coordinator and Registrar
https://minerva.sandelman.ca/
MIT License
0 stars 1 forks source link

Return objects on POST #11

Open j-bernard opened 5 years ago

j-bernard commented 5 years ago

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

mcr commented 5 years ago

j-bernard notifications@github.com wrote:

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

  • POST /users => need to get back id and certs

As opposed to getting back Location: and a 201? That's the normal RESTful way to make stuff.

> * POST /devices => need to get back wpa_key and name
j-bernard commented 5 years ago

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.