Jeroen Stoker - Unifying Django APIs through GraphQL

Поділитися
Вставка
  • Опубліковано 8 вер 2024
  • Django can form the basis of many robust REST API's, with its powerful ORM and pluggable nature it can be trivial to add on API's using frameworks like DjangoRestFramework, FastAPI, and can result in a complex set of opaque endpoints. After a previous iteration of Pygrunn, GraphQL has always stood on my shortlist of to-be-explored software. Recently there was an opportunity to put it to use for a new webapp and for us to start the process on combining our many endpoints into a single endpoint. With this talk I will give a brief introduction on a new way of serving your data, show how we added a flexible GraphQL endpoint to our monolithic Django application by using Django-Graphene, focus on the pitfalls I encountered and deliver a cautionary tale to whoever feels the itch to unify their API's.

КОМЕНТАРІ •