GraphQL Proxy Caching Advanced 플러그인 OpenAPI 사양
GraphQL Proxy Caching Advanced 플러그인 OpenAPI 사양 (GraphQL Proxy Caching Advanced Plugin OpenAPI Specification)
이 문서는 Kong의 GraphQL Proxy Caching Advanced 플러그인을 통해 캐시된 GraphQL 쿼리를 관리하는 API의 OpenAPI 사양을 담고 있어요. 모든 GraphQL 캐시를 한 번에 비우는 엔드포인트와, 캐시 키나 플러그인 ID를 기준으로 특정 캐시 항목을 조회·삭제하는 엔드포인트가 정의되어 있어요. Kong Admin API와 함께 이 사양을 활용하면 GraphQL 응답 캐시를 프로그래밍 방식으로 손쉽게 제어할 수 있어요
출처: 문서
본문
---
openapi: 3.0.2
info:
title: GraphQL Proxy Cache API
version: 1.0.0
description: API for managing cached GraphQL queries in Kong via the GraphQL Proxy
Cache Advanced plugin.
contact:
email: docs@konghq.com
name: Kong Inc
url: https://konghq.com
externalDocs:
description: GraphQL Proxy Advanced Plugin API Specification
url: https://developer.konghq.com
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
security:
- personalAccessToken: []
paths:
"/graphql-proxy-cache-advanced":
delete:
operationId: purgeAllGraphQLCache
summary: Purge All GraphQL Cache Entities
description: Deletes all cached GraphQL query responses across all GraphQL Proxy
Cache plugins.
responses:
'204':
description: Cache successfully purged.
'500':
description: Internal server error.
tags:
- GraphQL Proxy Cache
"/graphql-proxy-cache-advanced/{cache_key}":
get:
operationId: getGraphQLCacheEntity
summary: Retrieve a Cached GraphQL Query
description: Retrieves a cached GraphQL query response by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key of the GraphQL query response to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- GraphQL Proxy Cache
delete:
operationId: deleteGraphQLCacheEntity
summary: Delete a Cached GraphQL Query
description: Deletes a cached GraphQL query response by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key of the GraphQL query response to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- GraphQL Proxy Cache
"/graphql-proxy-cache-advanced/{plugin_id}/caches/{cache_key}":
get:
operationId: getGraphQLCacheEntityByPlugin
summary: Retrieve a Cached GraphQL Query for a Specific Plugin
description: Retrieves a cached GraphQL query response within a specific GraphQL
Proxy Cache plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the GraphQL Proxy Cache plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key of the GraphQL query response to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- GraphQL Proxy Cache
delete:
operationId: deleteGraphQLCacheEntityByPlugin
summary: Delete a Cached GraphQL Query for a Specific Plugin
description: Deletes a cached GraphQL query response within a specific GraphQL
Proxy Cache plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the GraphQL Proxy Cache plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key of the GraphQL query response to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- GraphQL Proxy Cache
tags:
- name: GraphQL Proxy Cache
description: API endpoints for managing GraphQL query cache entities in Kong.
components:
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Token
관련 자료
더 알아보기 (Learn more)
- GraphQL API에 세밀한 요청 속도 제한을 적용하는 방법을 소개하는 문서예요 — GraphQL Rate Limiting Advanced plugin
- GraphQL API를 REST 엔드포인트처럼 노출할 수 있게 해주는 플러그인을 소개하는 문서예요 — DeGraphQL plugin