본문으로 바로가기 본문 바로가기
WIKI 기술 지식 베이스

GraphQL Rate Limiting Advanced 플러그인 OpenAPI 사양

원문 보기 위키 갱신

GraphQL Rate Limiting Advanced 플러그인 OpenAPI 사양 (GraphQL Rate Limiting Advanced Plugin OpenAPI Specification)

이 문서는 GraphQL Rate Limiting Advanced 플러그인의 관리 API를 OpenAPI 사양 형태로 정의한 내용이에요. 워크스페이스, 서비스, GraphQL Cost Decoration 같은 리소스를 조회하고 관리할 때 필요한 경로 파라미터와 응답 스키마가 자세히 담겨 있어요. 페이지네이션과 태그 필터링 규칙, 401 인증 오류 응답 같은 공통 규격도 함께 확인할 수 있어요.

출처: 문서

본문

---
components:
  parameters:
    GraphQLCostDecorationId:
      description: ID of the GraphQL Cost Decoration to lookup
      example: ''
      in: path
      name: GraphQLCostDecorationId
      required: true
      schema:
        type: string
    PaginationOffset:
      allowEmptyValue: true
      description: Offset from which to return the next set of resources. Use the
        value of the 'offset' field from the response of a list operation as input
        here to paginate through all the resources
      in: query
      name: offset
      schema:
        type: string
    PaginationSize:
      description: Number of resources to be returned.
      in: query
      name: size
      schema:
        default: 100
        maximum: 1000
        minimum: 1
        type: integer
    PaginationTagsFilter:
      allowEmptyValue: true
      description: A list of tags to filter the list of resources on. Multiple tags
        can be concatenated using ',' to mean AND or using '/' to mean OR.
      example: tag1,tag2
      in: query
      name: tags
      schema:
        type: string
    ServiceIdOrName:
      description: ID or name of the Service to lookup
      example: 7fca84d6-7d37-4a74-a7b0-93e576089a41
      in: path
      name: ServiceIdOrName
      required: true
      schema:
        type: string
    Workspace:
      description: The name of the workspace
      in: path
      name: workspace
      required: true
      schema:
        default: default
        example: team-payments
        type: string
  responses:
    HTTP401Error:
      content:
        application/json:
          examples:
            DuplicateApiKey:
              summary: Duplicate API key found
              value:
                message: Duplicate API key found
                status: 401
            InvalidAuthCred:
              summary: Invalid authentication credentials
              value:
                message: Unauthorized
                status: 401
            NoAPIKey:
              summary: No API key found
              value:
                message: No API key found in request
                status: 401
          schema:
            "$ref": "#/components/schemas/GatewayUnauthorizedError"
      description: Unauthorized
  schemas:
    GatewayUnauthorizedError:
      properties:
        message:
          type: string
        status:
          type: integer
      required:
      - message
      - status
      type: object
    GraphQLCostDecoration:
      additionalProperties: false
      properties:
        add_arguments:
          default: []
          items:
            type: string
          nullable: true
          type: array
        add_constant:
          default: 1
          nullable: true
          type: number
        created_at:
          description: Unix epoch when the resource was created.
          nullable: true
          type: integer
        id:
          description: A string representing a UUID (universally unique identifier).
          nullable: true
          type: string
        mul_arguments:
          default: []
          items:
            type: string
          nullable: true
          type: array
        mul_constant:
          default: 1
          nullable: true
          type: number
        service:
          nullable: true
          properties:
            id:
              type: string
          type: object
          x-foreign: true
        type_path:
          type: string
      required:
      - type_path
      type: object
    GraphQLCostDecorationWithoutParents:
      additionalProperties: false
      properties:
        add_arguments:
          default: []
          items:
            type: string
          nullable: true
          type: array
        add_constant:
          default: 1
          nullable: true
          type: number
        created_at:
          description: Unix epoch when the resource was created.
          nullable: true
          type: integer
        id:
          description: A string representing a UUID (universally unique identifier).
          nullable: true
          type: string
        mul_arguments:
          default: []
          items:
            type: string
          nullable: true
          type: array
        mul_constant:
          default: 1
          nullable: true
          type: number
        service:
          nullable: true
          properties:
            id:
              type: string
          type: object
          x-foreign: true
        type_path:
          type: string
      required:
      - type_path
      type: object
    PaginationNextResponse:
      description: URI to the next page (may be null)
      type: string
    PaginationOffsetResponse:
      description: Offset is used to paginate through the API. Provide this value
        to the next list operation to fetch the next page
      type: string
  securitySchemes:
    adminToken:
      in: header
      name: Kong-Admin-Token
      type: apiKey
externalDocs:
  description: Documentation for Kong Gateway and its APIs
  url: https://developer.konghq.com
info:
  contact:
    email: support@konghq.com
    name: Kong Inc
    url: https://konghq.com
  description: |-
    OpenAPI 3.0 spec for Kong Gateway's Admin API.

    You can learn more about Kong Gateway at [developer.konghq.com](https://developer.konghq.com).
    Give Kong a star at the [Kong/kong](https://github.com/kong/kong) repository.
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  title: Kong Enterprise Admin API
  version: 3.14.0
openapi: 3.0.0
paths:
  "/{workspace}/graphql-rate-limiting-advanced/costs":
    get:
      description: List all GraphQL Cost Decorations in a workspace
      operationId: list-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/PaginationSize"
      - "$ref": "#/components/parameters/PaginationOffset"
      - "$ref": "#/components/parameters/PaginationTagsFilter"
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      "$ref": "#/components/schemas/GraphQLCostDecoration"
                    type: array
                  next:
                    "$ref": "#/components/schemas/PaginationNextResponse"
                  offset:
                    "$ref": "#/components/schemas/PaginationOffsetResponse"
                type: object
          description: A successful response listing GraphQL Cost Decorations
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: List all GraphQL Cost Decorations in a workspace
      tags:
      - GraphQL Cost Decorations
    post:
      description: Create a new GraphQL Cost Decoration in a workspace
      operationId: create-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Description of the new GraphQL Cost Decoration for creation
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully created GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Create a new GraphQL Cost Decoration in a workspace
      tags:
      - GraphQL Cost Decorations
  "/{workspace}/graphql-rate-limiting-advanced/costs/{GraphQLCostDecorationId}":
    delete:
      description: Delete a GraphQL Cost Decoration in a workspace
      operationId: delete-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '204':
          description: Successfully deleted GraphQL Cost Decoration or the resource
            didn't exist
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Delete a GraphQL Cost Decoration in a workspace
      tags:
      - GraphQL Cost Decorations
    get:
      description: Get a GraphQL Cost Decoration using ID in a workspace.
      operationId: get-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully fetched GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
        '404':
          description: Resource does not exist
      summary: Get a GraphQL Cost Decoration in a workspace
      tags:
      - GraphQL Cost Decorations
    parameters:
    - "$ref": "#/components/parameters/GraphQLCostDecorationId"
    patch:
      description: Update a GraphQL Cost Decoration in a workspace
      operationId: update-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Fields of the GraphQL Cost Decoration that need to be updated
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully updated GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
        '404':
          description: Resource does not exist
      summary: Update a GraphQL Cost Decoration in a workspace
      tags:
      - GraphQL Cost Decorations
    put:
      description: Create or Update GraphQL Cost Decoration using ID in a workspace.
      operationId: upsert-graphql-rate-limiting-advanced-cost-in-workspace
      parameters:
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Description of the GraphQL Cost Decoration
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully upserted GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Upsert a GraphQL Cost Decoration in a workspace
      tags:
      - GraphQL Cost Decorations
  "/{workspace}/services/{ServiceIdOrName}/graphql-rate-limiting-advanced/costs":
    get:
      description: List all GraphQL Cost Decorations associated with a Service in
        a workspace
      operationId: list-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/PaginationSize"
      - "$ref": "#/components/parameters/PaginationOffset"
      - "$ref": "#/components/parameters/PaginationTagsFilter"
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      "$ref": "#/components/schemas/GraphQLCostDecoration"
                    type: array
                  next:
                    "$ref": "#/components/schemas/PaginationNextResponse"
                  offset:
                    "$ref": "#/components/schemas/PaginationOffsetResponse"
                type: object
          description: A successful response listing GraphQL Cost Decorations
      summary: List all GraphQL Cost Decorations associated with a Service in a workspace
      tags:
      - GraphQL Cost Decorations
    post:
      description: Create a new GraphQL Cost Decoration associated with a Service
        in a workspace
      operationId: create-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecorationWithoutParents"
        description: Description of new GraphQL Cost Decoration for creation
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully created GraphQL Cost Decoration
      summary: Create a new GraphQL Cost Decoration associated with a Service in a
        workspace
      tags:
      - GraphQL Cost Decorations
  "/{workspace}/services/{ServiceIdOrName}/graphql-rate-limiting-advanced/costs/{GraphQLCostDecorationId}":
    delete:
      description: Delete a GraphQL Cost Decoration associated with a Service using
        ID in a workspace.
      operationId: delete-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '204':
          description: Successfully deleted GraphQL Cost Decoration or the resource
            didn't exist
      summary: Delete a GraphQL Cost Decoration associated with a Service in a workspace
      tags:
      - GraphQL Cost Decorations
    get:
      description: Get a GraphQL Cost Decoration associated with a Service using ID
        in a workspace.
      operationId: get-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      - "$ref": "#/components/parameters/Workspace"
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully fetched GraphQL Cost Decoration
        '404':
          description: Resource does not exist
      summary: Get a GraphQL Cost Decoration associated with a Service in a workspace
      tags:
      - GraphQL Cost Decorations
    patch:
      description: Update a GraphQL Cost Decoration associated with a Service using
        ID in a workspace.
      operationId: update-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Fields of the GraphQL Cost Decoration that need to be updated
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully updated GraphQL Cost Decoration
        '404':
          description: Resource does not exist
      summary: Update a GraphQL Cost Decoration associated with a Service in a workspace
      tags:
      - GraphQL Cost Decorations
    put:
      description: Create or Update a GraphQL Cost Decoration associated with a Service
        using ID in a workspace.
      operationId: upsert-graphql-rate-limiting-advanced-cost-with-service-in-workspace
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      - "$ref": "#/components/parameters/Workspace"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecorationWithoutParents"
        description: Description of the GraphQL Cost Decoration
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully upserted GraphQL Cost Decoration
      summary: Upsert a GraphQL Cost Decoration associated with a Service in a workspace
      tags:
      - GraphQL Cost Decorations
  "/graphql-rate-limiting-advanced/costs":
    get:
      description: List all GraphQL Cost Decorations
      operationId: list-graphql-rate-limiting-advanced-cost
      parameters:
      - "$ref": "#/components/parameters/PaginationSize"
      - "$ref": "#/components/parameters/PaginationOffset"
      - "$ref": "#/components/parameters/PaginationTagsFilter"
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      "$ref": "#/components/schemas/GraphQLCostDecoration"
                    type: array
                  next:
                    "$ref": "#/components/schemas/PaginationNextResponse"
                  offset:
                    "$ref": "#/components/schemas/PaginationOffsetResponse"
                type: object
          description: A successful response listing GraphQL Cost Decorations
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: List all GraphQL Cost Decorations
      tags:
      - GraphQL Cost Decorations
    post:
      description: Create a new GraphQL Cost Decoration
      operationId: create-graphql-rate-limiting-advanced-cost
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Description of the new GraphQL Cost Decoration for creation
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully created GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Create a new GraphQL Cost Decoration
      tags:
      - GraphQL Cost Decorations
  "/graphql-rate-limiting-advanced/costs/{GraphQLCostDecorationId}":
    delete:
      description: Delete a GraphQL Cost Decoration
      operationId: delete-graphql-rate-limiting-advanced-cost
      parameters:
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      responses:
        '204':
          description: Successfully deleted GraphQL Cost Decoration or the resource
            didn't exist
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Delete a GraphQL Cost Decoration
      tags:
      - GraphQL Cost Decorations
    get:
      description: Get a GraphQL Cost Decoration using ID.
      operationId: get-graphql-rate-limiting-advanced-cost
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully fetched GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
        '404':
          description: Resource does not exist
      summary: Get a GraphQL Cost Decoration
      tags:
      - GraphQL Cost Decorations
    parameters:
    - "$ref": "#/components/parameters/GraphQLCostDecorationId"
    patch:
      description: Update a GraphQL Cost Decoration
      operationId: update-graphql-rate-limiting-advanced-cost
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Fields of the GraphQL Cost Decoration that need to be updated
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully updated GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
        '404':
          description: Resource does not exist
      summary: Update a GraphQL Cost Decoration
      tags:
      - GraphQL Cost Decorations
    put:
      description: Create or Update GraphQL Cost Decoration using ID.
      operationId: upsert-graphql-rate-limiting-advanced-cost
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Description of the GraphQL Cost Decoration
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully upserted GraphQL Cost Decoration
        '401':
          "$ref": "#/components/responses/HTTP401Error"
      summary: Upsert a GraphQL Cost Decoration
      tags:
      - GraphQL Cost Decorations
  "/services/{ServiceIdOrName}/graphql-rate-limiting-advanced/costs":
    get:
      description: List all GraphQL Cost Decorations associated with a Service
      operationId: list-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/PaginationSize"
      - "$ref": "#/components/parameters/PaginationOffset"
      - "$ref": "#/components/parameters/PaginationTagsFilter"
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  data:
                    items:
                      "$ref": "#/components/schemas/GraphQLCostDecoration"
                    type: array
                  next:
                    "$ref": "#/components/schemas/PaginationNextResponse"
                  offset:
                    "$ref": "#/components/schemas/PaginationOffsetResponse"
                type: object
          description: A successful response listing GraphQL Cost Decorations
      summary: List all GraphQL Cost Decorations associated with a Service
      tags:
      - GraphQL Cost Decorations
    post:
      description: Create a new GraphQL Cost Decoration associated with a Service
      operationId: create-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecorationWithoutParents"
        description: Description of new GraphQL Cost Decoration for creation
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully created GraphQL Cost Decoration
      summary: Create a new GraphQL Cost Decoration associated with a Service
      tags:
      - GraphQL Cost Decorations
  "/services/{ServiceIdOrName}/graphql-rate-limiting-advanced/costs/{GraphQLCostDecorationId}":
    delete:
      description: Delete a GraphQL Cost Decoration associated with a Service using
        ID.
      operationId: delete-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      responses:
        '204':
          description: Successfully deleted GraphQL Cost Decoration or the resource
            didn't exist
      summary: Delete a GraphQL Cost Decoration associated with a Service
      tags:
      - GraphQL Cost Decorations
    get:
      description: Get a GraphQL Cost Decoration associated with a Service using ID.
      operationId: get-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully fetched GraphQL Cost Decoration
        '404':
          description: Resource does not exist
      summary: Get a GraphQL Cost Decoration associated with a Service
      tags:
      - GraphQL Cost Decorations
    patch:
      description: Update a GraphQL Cost Decoration associated with a Service using
        ID.
      operationId: update-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecoration"
        description: Fields of the GraphQL Cost Decoration that need to be updated
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully updated GraphQL Cost Decoration
        '404':
          description: Resource does not exist
      summary: Update a GraphQL Cost Decoration associated with a Service
      tags:
      - GraphQL Cost Decorations
    put:
      description: Create or Update a GraphQL Cost Decoration associated with a Service
        using ID.
      operationId: upsert-graphql-rate-limiting-advanced-cost-with-service
      parameters:
      - "$ref": "#/components/parameters/ServiceIdOrName"
      - "$ref": "#/components/parameters/GraphQLCostDecorationId"
      requestBody:
        content:
          application/json:
            schema:
              "$ref": "#/components/schemas/GraphQLCostDecorationWithoutParents"
        description: Description of the GraphQL Cost Decoration
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                "$ref": "#/components/schemas/GraphQLCostDecoration"
          description: Successfully upserted GraphQL Cost Decoration
      summary: Upsert a GraphQL Cost Decoration associated with a Service
      tags:
      - GraphQL Cost Decorations
security:
- adminToken: []
servers:
- description: Default Admin API URL
  url: "{protocol}://{hostname}:{port}{path}"
  variables:
    hostname:
      default: localhost
      description: Hostname for Kong's Admin API
    path:
      default: "/"
      description: Base path for Kong's Admin API
    port:
      default: '8001'
      description: Port for Kong's Admin API
    protocol:
      default: http
      description: Protocol for requests to Kong's Admin API
      enum:
      - http
      - https
tags:
- name: GraphQL Cost Decorations

번역할 문서 조각이 아직 첨부되지 않았어요. Kong 문서 내용(마크다운)을 보내주시면 규칙에 맞게 바로 번역해 드릴게요.

관련 자료

더 알아보기 (Learn more)