Open joenatan opened 1 year ago
Hi @joenatan,
You can find an example in the docs. See the Using completion widget outside of Django admin section in the readme, and there will be a code sample for views.py
that shows how to use DjangoQLSchemaSerializer
:
introspections = DjangoQLSchemaSerializer().serialize(DjangoQLSchema(MyModel))
Thanks,
Denis
Thanks for the awesome package!
How can I map the introspection endpoint in drf (Django Rest Framework)?
My idea would be like this: /api/v1//introspect/
I have now implemented this with an endpoint action in my viewset:
But a deprecated warning appears that I should use DjangoQLSchemaSerializer. But how?
Doesn't work.
Thanks for your help