Inigo GraphQL 플러그인 구성 레퍼런스
Inigo GraphQL 플러그인 구성 레퍼런스 (Inigo GraphQL Plugin Configuration Reference)
이 문서는 Kong의 Inigo GraphQL 플러그인 구성 항목을 JSON 스키마 형태로 정리한 레퍼런스예요. Inigo 서비스 토큰과 GraphQL 스키마 같은 config 필드를 설정하는 방법을 설명해요. 또한 protocols, route, service 항목을 통해 플러그인이 어떤 프로토콜과 요청 경로에서 활성화될지 제어하는 방법도 함께 다뤄요.
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"token": {
"description": "Inigo service token. Check out https://docs.inigo.io/ to setup a service and a token.",
"type": "string"
},
"schema": {
"description": "GraphQL schema of the endpoint. If not provided, Inigo Plugin will pull it from the cloud.",
"type": "string"
}
},
"required": [
"token"
],
"type": "object"
},
"protocols": {
"default": [
"http",
"https"
],
"description": "A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type. For example, plugins that only work in stream mode will only support tcp and tls.",
"items": {
"enum": [
"http",
"https"
],
"required": [],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"required": [],
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"required": [],
"type": "object"
}
},
"required": []
}
관련 자료
더 알아보기 (Learn more)
- Inigo 콘솔에 접속해 서비스와 토큰을 직접 관리해 보세요 — Inigo app
- Inigo 공식 문서에서 서비스 설정과 토큰 발급 절차를 자세히 확인해 보세요 — Inigo documentation