#20416: Model Scaffold should generate REST API -----------------------------+------------------------------------- Reporter: juzerali | Owner: nobody Type: New feature | Status: new Component: Utilities | Version: master Severity: Normal | Keywords: scaffolding, automation Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -----------------------------+------------------------------------- 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. Additionally GET /user?limit=5&skip=10&sortBy=id-desc&contain=username What do you guys think? Worth the effort? -- Ticket URL: <https://code.djangoproject.com/ticket/20416> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.