How can we create nested json schema with emmett_rest? For example, data from more than one model or data from more than one related Model? Also, why it is mandatory to have return data from an endpoint only associated with a Model?
tasks = app.rest_module(__name__, 'api_task', Task, url_prefix='tasks')
Here, if the json data is not associated with any Model, how can I use this extension?
How can we create nested json schema with emmett_rest? For example, data from more than one model or data from more than one related Model? Also, why it is mandatory to have return data from an endpoint only associated with a Model?
Here, if the json data is not associated with any Model, how can I use this extension?