Skip to content

Creating Nested Schema and Schema Not associated with Model #18

Description

@arunksoman

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions