---
title: "DeclarativeConfigHTTPGateway"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1/schemas/DeclarativeConfigHTTPGateway"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1.md

# DeclarativeConfigHTTPGateway

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Konnect Control Planes Configuration
  version: 3.14.0
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
components:
  schemas:
    DeclarativeConfigHTTPListener:
      type: object
      properties:
        port:
          description: The port number for the proxy to listen on.
          type: integer
        protocol:
          description: The protocol for the listener.
          type: string
          enum:
            - http
            - https
        script:
          description: The pd script for the listener.
          type: string
      required:
        - port
        - protocol
    DeclarativeConfigHTTPRoute:
      type: object
      properties:
        name:
          description: The name of the route.
          type: string
        match:
          description: The router match expression.
          type: string
        req_script:
          description: The pd script for the request.
          type: string
        resp_script:
          description: The pd script for the response.
          type: string
      required:
        - name
        - match
    DeclarativeConfigHTTPGateway:
      type: object
      properties:
        listener:
          $ref: "#/components/schemas/DeclarativeConfigHTTPListener"
        routes:
          type: array
          items:
            $ref: "#/components/schemas/DeclarativeConfigHTTPRoute"
```
