yezyilomo / django-restql

Turn your API made with Django REST Framework(DRF) into a GraphQL like API.
https://yezyilomo.github.io/django-restql
MIT License
620 stars 43 forks source link

Include playground in repo to be able to provide it in project urls #308

Open KevinHamonApp opened 1 year ago

KevinHamonApp commented 1 year ago

Hello there, I discovered the project recently, very nice work !

The playground you provide to test the package is excellent. But I can't find it in the repo.

It would be great to be able to provide a url in our projects to allow front-end developers to test endpoints through this playground. The playground should query the models from the django project to allow there selection on the interface.

What do you think about it ? Best regards

yezyilomo commented 1 year ago

Thank you @KevinHamonApp

Here are the links for repositories of the playground

I think your idea of having a playground that would allow querying any project as long as you provide the url is great, we can make some changes to allow that, we can also make some changes to allow developers to customize what models to query, we would also have to add a way to authenticate users for protected routes.

KevinHamonApp commented 1 year ago

Hello, thanks for the repos ! That would be great indeed. I think that it could self-discover the models through Django easily. So that we would have an automated Playground, close from what swagger would propose for rest api for example !