Django API Generator
Developer Tool - Dynamic API Generator
The tool is able to generate APIs using Django & DRF stack with a minimum effort. For newcomers, Django is a leading backend framework used to code from simple websites and APIs to complex eCommerce solutions.
π Django API Generator -
Source codeπ Free support via Email and
Discordπ More Developer Tools - provided by AppSeed
Quick start in Docker
Dockerπ Step 1 - Download the code from the GH repository (using
GIT)
$ git clone https://github.com/app-generator/devtool-django-api-generator.git
$ cd devtool-django-api-generatorπ Step 2 - Start the APP in
Docker
$ docker-compose up --build Visit http://localhost:5085 in your browser. By default a simple Books Model is used as sample.
The generated DRF API is live at
http://localhost:5085/api/booksRegistered users can interact with the API using the
API-Viewpage

Video Presentation
How It Works
π Step #1 - Define models in
apps/models.py
By default, the project comes with a simple Books model:
π Step #2 -
Register the modelincore/settings.py(API_GENERATOR section)
π Step #3 -
Migrate Database
π Step #4 -
Generate API
Note: if you define a model that wasn't migrated to db, you will see an error that say names of not migrated models and codes will not generate.
π Step #5 -
Use the API
Create a book by
POSTrequest to/api/books/Get book that has id = 2 by
GETrequest to/api/books/2/Get all books by
GETrequest to/api/books/Update book that has id = 2 by
PUTrequest to/api/books/2/delete book that has id = 2 by
DELETErequest to/api/books/2/
π Where to go from here
π Contact AppSeed using the support page
π Use the App Generator to generate a new project
Last updated
Was this helpful?