---
title: "Returns a small sample XML document as `application/xml`."
url: "https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8/operations/xml_handler"
---

> Full API specification: https://developer.rucho.org/apis/rucho/versions/5bdf1bcb-8db4-40f1-a293-72c7198e26c8.md

# Returns a small sample XML document as `application/xml`.

`GET` `/xml`

Operation ID: `xml_handler`

Deliberately non-JSON — a controllable upstream for testing how a gateway handles `application/xml` responses (e.g. content-type-aware plugins).

## Responses

- `200` - A sample XML document

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: rucho
  version: 1.6.0
servers:
  - url: https://rucho.org
    description: Production (EKS us-east-2, behind Kong)
paths:
  /xml:
    get:
      tags:
        - crate::routes::content_types
      summary: Returns a small sample XML document as `application/xml`.
      description: >-
        Deliberately non-JSON — a controllable upstream for testing how a
        gateway

        handles `application/xml` responses (e.g. content-type-aware plugins).
      operationId: xml_handler
      responses:
        "200":
          description: A sample XML document
          content:
            application/xml:
              schema:
                type: string
```
