{% extends 'layouts/base.html' %} {% block title %} API Sample {% endblock title %} {% block stylesheets %}{% endblock stylesheets %} {% block content %}

How it works

Generated API

This codebase can be used to generate secure APIs using DRF. Steps to generate a new service:

  • Step #1 - Edit "apps/models.py" and add a new model
  • Step #2 - Migrate the database (usual steps)
  • Step #3 - Execute "python manage.py generate-api"
  • Step #4 - Enable model in "core/settings.py" - Section "API_GENERATOR"
  • Step #5 - Access the api "http://localhost:8000/api/MODEL_NAME/"

Import the POSTMAN Sample collection and access the Generated API

rocket
{% include "includes/footer.html" %}
{% endblock content %} {% block javascripts %} {% endblock javascripts %}