Opened 3 years ago

Closed 3 years ago

Last modified 22 months ago

#32362 closed New feature (wontfix)

Easy REST API

Reported by: Guilherme Isaías SIlva Owned by: nobody
Component: Utilities Version: 3.1
Severity: Normal Keywords: rest api
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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: guilherme@…

Change History (2)

comment:1 by Mariusz Felisiak, 3 years ago

Resolution: wontfix
Status: newclosed

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

comment:2 by Carlton Gibson, 22 months ago

#33884 was closed 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 this discussion on the Django Forum, and experiments such as kezabelle/django-formality.

There's plenty of groundwork going on... — one of the first steps would be to tease-out 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) both JSON and form-encoded data, plus multipart variants. 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…)

Last edited 22 months ago by Carlton Gibson (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top