The ideal use-case regarding the models managed by the API is to have a configuration that limits the exposure.
This is the filter:
by default, all models are hidden
the models managed via API are enabled via API_MODELS variable (list type)
API_MODELS = [] #default, optional presence in CFG
# OR
API_MODELS = ['products'] # manage only products Model
# OR
API_MODELS = ['ALL'] # manage ALL models
This behavior provides total control for the developer and follows the pattern provided already in this DRF library:
Hello @koladev32
The ideal
use-case
regarding the models managed by the API is to have a configuration that limits the exposure.This is the filter:
API_MODELS
variable (list type)This behavior provides total control for the developer and follows the pattern provided already in this DRF library:
https://github.com/app-generator/django-api-generator
Let's debate and find a solution together.
Ty!