New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect default api_configs.api_url #10
Comments
Do you really need API for every model? So, |
If I dont want the model in the API, I wouldnt use the Mixin. |
Yes. If you don't want an API for a model don't use the mixin. |
This issue is about when I have used the Mixin, I have already decided that I do want the model in the API, so the Mixin can automatically use sensible defaults without any mandatory |
I got your point. That would be nice I think. I hope I'll do it soon. |
#10 Added support for detect api url automatically.
The updated version is available on the Pypi: https://pypi.org/project/fast-drf/2.2.10/ |
Currently it is mandatory to have the following on each model:
While most production sites will want to customise the urls, it is possible to derive a sensible default from the model class name, making it possible to add models to the API by only adding the mixin. Much faster. And even in production sites, there will be some parts of the API for which the default model name is an acceptable URI name, especially for smaller models.
The text was updated successfully, but these errors were encountered: