[Django] #32362: Easy REST API

3 views
Skip to first unread message

Django

unread,
Jan 18, 2021, 11:04:44 AM1/18/21
to django-...@googlegroups.com
#32362: Easy REST API
-------------------------------------+-------------------------------------
Reporter: Guilherme | Owner: nobody
Isaías SIlva |
Type: New | Status: new
feature |
Component: Utilities | Version: 3.1
Severity: Normal | Keywords: rest api
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Dear Sir/Madam,

In the last days I create severals REST APIs, and I think this is very
arduous, because we write the same thing several times, and this is not
the Django propose. So I'm thinkin to create a new feature, it's like
Django Admin, but to create REST APIs easily. It's works registering the
models, specifing fields and etc, a lot like Django Admin. I didn't start
create it yet, but if you allow I can start.

Sincerely, Guilherme Isaías

My email: guil...@guilhermeweb.dev

--
Ticket URL: <https://code.djangoproject.com/ticket/32362>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 18, 2021, 11:43:06 AM1/18/21
to django-...@googlegroups.com
#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
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => wontfix


Comment:

There is already an excellent 3rd party package that you can use `django-
rest-framework`.

--
Ticket URL: <https://code.djangoproject.com/ticket/32362#comment:1>

Django

unread,
Aug 2, 2022, 4:52:19 AM8/2/22
to django-...@googlegroups.com
#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>

Reply all
Reply to author
Forward
0 new messages