프록시 캐싱 고급 플러그인 OpenAPI 명세
프록시 캐싱 고급 플러그인 OpenAPI 명세 (Proxy Caching Advanced Plugin)
이 문서는 Kong의 Proxy Cache Advanced Plugin을 위한 OpenAPI 명세예요. 캐시된 엔티티를 전체 삭제하거나 특정 키로 조회 및 삭제하는 API를 제공해요. 이 API를 사용하면 프록시 캐시를 효율적으로 관리할 수 있어요.
출처: 문서
본문
---
openapi: 3.0.2
info:
title: Proxy Cache Advanced API
version: 1.0.0
description: API for managing cached entities in Kong via the Proxy Cache Advanced
plugin.
contact:
email: docs@konghq.com
name: Kong Inc
url: https://konghq.com
externalDocs:
description: Proxy Cache 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:
"/proxy-cache-advanced":
delete:
operationId: purgeAllCache
summary: Purge All Cache Entities
description: Deletes all cached entities across all Proxy Cache Advanced plugins.
responses:
'204':
description: Cache successfully purged.
'500':
description: Internal server error.
tags:
- Proxy Cache Advanced
"/proxy-cache-advanced/{cache_key}":
get:
operationId: getCacheEntity
summary: Retrieve a Cache Entity
description: Retrieves a cached entity by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- Proxy Cache Advanced
delete:
operationId: deleteCacheEntity
summary: Delete a Cache Entity
description: Deletes a cached entity by its cache key.
parameters:
- name: cache_key
in: path
required: true
description: The cache key to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- Proxy Cache Advanced
"/proxy-cache-advanced/{plugin_id}/caches/{cache_key}":
get:
operationId: getCacheEntityByPlugin
summary: Retrieve a Cache Entity for a Specific Plugin
description: Retrieves a cached entity within a specific Proxy Cache Advanced
plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the Proxy Cache Advanced plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key to retrieve.
schema:
type: string
responses:
'200':
description: Cache entry found.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- Proxy Cache Advanced
delete:
operationId: deleteCacheEntityByPlugin
summary: Delete a Cache Entity for a Specific Plugin
description: Deletes a cached entity within a specific Proxy Cache Advanced
plugin.
parameters:
- name: plugin_id
in: path
required: true
description: The ID of the Proxy Cache Advanced plugin instance.
schema:
type: string
- name: cache_key
in: path
required: true
description: The cache key to delete.
schema:
type: string
responses:
'204':
description: Cache entry successfully deleted.
'404':
description: Cache entry not found.
'500':
description: Internal server error.
tags:
- Proxy Cache Advanced
tags:
- name: Proxy Cache Advanced
description: API endpoints for managing proxy cache entities in Kong via the Proxy
Cache Advanced plugin.
components:
securitySchemes:
personalAccessToken:
type: http
scheme: bearer
bearerFormat: Token
관련 리소스
더 알아보기 (Learn more)
- Proxy Cache 플러그인의 기본 사용법을 알아보세요 — Proxy Cache plugin