Open mikeqcp opened 4 years ago
One option I can think about when dealing with Django BE is combination of those two tools:
https://www.django-rest-framework.org/api-guide/schemas/ It allows to generate endpoint metadata in openAPI format (including accepted parametrs & responses format)
https://github.com/manifoldco/swagger-to-ts It allows to parse openAPI schema and produces TS interfaces based on them
We should consider options for strongly typing API request body & response formats.
Ideally this should be shared between BE & FE developers in some way, and on FE avaiable i.e. as Typescript interfaces.