Skip to content

Rest API with XML response #3234

@ankursachdeva11

Description

@ankursachdeva11

I am trying to create custom api using webapi and we need output in custom XML.
When we are trying to return some XML and hit the rest API url then XML shown as plain text in the .... tags. It is not creating XML in response.

it shows like this :
image

Is there any way to modify the response tag to get custom XML response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: Framework/WebapiUSE ONLY for FRAMEWORK RELATED BUG! E.g If bug related to Catalog WEB API use just Catalogimprovement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions