Model Scaffold should generate REST API
|Reported by:||juzerali||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Does it makes sense to automatically generate a REST API for a model if the switch is provided in scaffolding command?
For example, creating a model named User from scaffold with --REST switch could auto generate following REST APIs
GET /user/1 --> Send user with id 1 as JSON
POST /user/ --> Create a user and return the user id
PUT /user/1 --> Update the user with id 1
DELETE /user/1 --> Delete the user with id 1
PATCH /user/1 --> make partial update to user with id 1.
What do you guys think? Worth the effort?