Django API Generator – Free PyPI Library

Hello Coders!

This article presents an open-source API Generator for Django that provides a simple way to build APIs on top of any model defined in the project. The configuration is minimal and the generated service is restricted to the registered use…


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Sm0ke

Hello Coders!

This article presents an open-source API Generator for Django that provides a simple way to build APIs on top of any model defined in the project. The configuration is minimal and the generated service is restricted to the registered users via JWT Tokens. Sources, released under the MIT license on GitHub, can be extended, incorporated into other projects, or simply used in eLearning activities.

Thanks for reading!

The tool once is installed using PIP, we need to follow up a few steps as described in the project README: update configuration and routing, generate the API using the CLI and start using the new API service.

Django API Generator - DRF Interface (free tool for developers).

✨ Generator Features

The library can be integrated with any Django project using PIP:

$ pip install django-api-generator

Once the library is installed, we should be able to generate API services in no-time.

  • âś… API engine provided by DRF
  • âś… Secured by JWT Tokens (mutating requests)
  • âś… Minimal Configuration (single line in the config for each model)
  • âś… Handles any model defined across the project
  • âś… GET requests are public
  • âś… Update, Delete, and Creation requests are protected

A video material that explains the integration process can be found on YouTube and also the code is available for download from GitHub.

👉 Django API Generator Sample - published on Github

The video presents all the steps from cloning a simple Django project, to library installation, configuration, and usage for two different models.

In the end, the Generated API Service is tested in the browser and also in POSTMAN (all requests).

Thanks for reading! For more resources and support please access:

  • 👉 More Developer Tools provided by AppSeed
  • 👉 Free support via Email & Discord (just in case)


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Sm0ke


Print Share Comment Cite Upload Translate Updates
APA

Sm0ke | Sciencx (2022-10-22T09:50:14+00:00) Django API Generator – Free PyPI Library. Retrieved from https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/

MLA
" » Django API Generator – Free PyPI Library." Sm0ke | Sciencx - Saturday October 22, 2022, https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/
HARVARD
Sm0ke | Sciencx Saturday October 22, 2022 » Django API Generator – Free PyPI Library., viewed ,<https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/>
VANCOUVER
Sm0ke | Sciencx - » Django API Generator – Free PyPI Library. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/
CHICAGO
" » Django API Generator – Free PyPI Library." Sm0ke | Sciencx - Accessed . https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/
IEEE
" » Django API Generator – Free PyPI Library." Sm0ke | Sciencx [Online]. Available: https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/. [Accessed: ]
rf:citation
» Django API Generator – Free PyPI Library | Sm0ke | Sciencx | https://www.scien.cx/2022/10/22/django-api-generator-free-pypi-library/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.