Skip to content

API managed Models - Filtered via CFG  #5

@app-generator

Description

@app-generator

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:

  • 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:

https://github.com/app-generator/django-api-generator

Let's debate and find a solution together.

Ty!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions