Scalable Services · Example Payload

Scalable Services Kong Plugin Example

API GatewayCloud NativeContainersDistributed SystemsHigh AvailabilityKubernetesLoad BalancingMicroservicesScalable ArchitectureServerlessService Mesh

Scalable Services Kong Plugin Example is an example object payload from Scalable Services, with 1 top-level field. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

example

Example Payload

Raw ↑
{
  "example": {
    "title": "Kong API Gateway Rate Limiting Plugin",
    "description": "Example Kong Admin API call to add a rate limiting plugin to a service, protecting a scalable microservice from traffic spikes.",
    "request": {
      "method": "POST",
      "url": "http://localhost:8001/services/payment-service/plugins",
      "headers": {
        "Content-Type": "application/json"
      },
      "body": {
        "name": "rate-limiting",
        "config": {
          "second": 100,
          "minute": 2000,
          "hour": 50000,
          "policy": "local",
          "limit_by": "consumer",
          "fault_tolerant": true,
          "hide_client_headers": false,
          "redis_ssl": false,
          "redis_ssl_verify": false
        }
      }
    },
    "response": {
      "status": 201,
      "body": {
        "id": "8d9f3e2a-1b4c-5d6e-7f8a-9b0c1d2e3f4a",
        "name": "rate-limiting",
        "service": {
          "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
        },
        "consumer": null,
        "route": null,
        "enabled": true,
        "protocols": ["grpc", "grpcs", "http", "https"],
        "config": {
          "second": 100,
          "minute": 2000,
          "hour": 50000,
          "day": null,
          "month": null,
          "year": null,
          "policy": "local",
          "limit_by": "consumer",
          "fault_tolerant": true,
          "hide_client_headers": false
        },
        "created_at": 1717286400,
        "updated_at": 1717286400
      }
    }
  }
}