#32362: Easy REST API
-------------------------------------+-------------------------------------
Reporter: Guilherme Isaías | Owner: nobody
SIlva |
Type: New feature | Status: closed
Component: Utilities | Version: 3.1
Severity: Normal | Resolution: wontfix
Keywords: rest api | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Carlton Gibson):
#33884 was closes as a duplicate. I was going to comment there with some
breadcrumbs.
This is essentially a duplicate of #21442, plus see also #32646, #32259,
as well as [https://forum.djangoproject.com/t/technical-board-vote-on-
ticket-32259-modernize-request-attribute-names/10255 this discussion on
the Django Forum], and experiments such as [https://github.com/kezabelle
/django-formality kezabelle/django-formality].
There's plenty of groundwork going on... — one of the first steps would be
to tease-out
[https://github.com/django/django/blob/89e695a69b16b8c0e720169b3ca4852cfd0c485f/django/http/request.py#L350
the request body parsing from `_load_post_and_files()`] so that we might
add a `request.data` property that was able to handle (by default) by JSON
and form-encoded data, plus multipart. I think if we can make progress
there, we wouldn't be too far off. (Parts such as JSONResponse are already
in place — you can do this already, but it's still a little manual…)
--
Ticket URL: <https://code.djangoproject.com/ticket/32362#comment:2>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701825dc17638-534afdc5-d14a-4ac2-b2d1-1d43f8f5aa5b-000000%40eu-central-1.amazonses.com.