Skip to content

How to return a response with just the content inside data? #2480

@james10424

Description

@james10424

The current response from defaultEndpointsFactory is

{
    "status": "success",
    "data": {
        "your": "response"
    }
}

Is there a way to return only the data part?

{
    "your": "response"
 }

Also it would be nice to only use the data response in the swagger documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions