Django API generator over DRF
Project description
Django API Generator
The tool is able to generate APIs
using Django & DRF stack with a minimum effort.
Actively supported by AppSeed via
Discord
.
How to use it
Step #1 - Install the package via
PIP
$ pip install django-api-manager
// OR
$ pip install git+https://github.com/app-generator/django-api-generator.git
Step #2 Update Configuration, include the new APP
INSTALLED_APPS = [
...
'django_api_gen', # Django Tasks Manager # <-- NEW
]
Step #3 -
Register the model
incore/settings.py
(API_GENERATOR section)
API_GENERATOR = {
'books': "Book", # <-- Books model provided as sample
}
Step #4 -
Migrate Database
$ python manage.py makemigrations
$ python manage.py migrate
Step #5 -
Generate API
$ python manage.py generate-api
The code is generated under the api
folder in the root of the project.
Step #6 -
Use API
If the managed model is Books, the API interface is /api/books/
and all CRUD methods are available.
Django API Generator - Open-source library provided by AppSeed
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-api-generator-0.0.2.tar.gz
(10.3 kB
view hashes)
Close
Hashes for django-api-generator-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61b1df6a8118ebe189227acd9dcda4173d4daf85742f75fb2e17871e6826af54 |
|
MD5 | bd36ed0d0cc67b350b8b6c9d77106486 |
|
BLAKE2b-256 | 141cdc1d1fac9873b099a9f5ea9415563a9e66067553f1b85b605484cd17de7b |