how to keep the front end and back end models in sync?

This page summarizes the projects mentioned and recommended in the original post on /r/django

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • drf-spectacular

    Sane and flexible OpenAPI 3 schema generation for Django REST framework.

    Here is your answer: drf_spectacular

  • openapi-generator

    OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)

    Unless you are trying to build some kind of offline mode, all your frontend should know about the backend is the response schema. You could feed an OpenAPI spec to something like https://openapi-generator.tech/ and generate a Dart client. Then, whenever some endpoint changes you will have to regenerate the client. Bonus points for doing API versioning.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts