Skip to main content

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 Email and 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 in core/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


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 details)

Uploaded Source

File details

Details for the file django-api-generator-0.0.2.tar.gz.

File metadata

  • Download URL: django-api-generator-0.0.2.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for django-api-generator-0.0.2.tar.gz
Algorithm Hash digest
SHA256 61b1df6a8118ebe189227acd9dcda4173d4daf85742f75fb2e17871e6826af54
MD5 bd36ed0d0cc67b350b8b6c9d77106486
BLAKE2b-256 141cdc1d1fac9873b099a9f5ea9415563a9e66067553f1b85b605484cd17de7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page