Swagger에 광주은행 OAuth 2.0 API 문서 업데이트 및 XSS 방지 처리 추가
This commit is contained in:
@@ -1,15 +1,40 @@
|
||||
{
|
||||
"openapi": "3.0.0",
|
||||
"info": {
|
||||
"title": "케이뱅크 OAuth 2.0 토큰 발급",
|
||||
"title": "광주은행 OAuth 2.0 토큰 발급",
|
||||
"description": "OAuth 2.0 토큰 발급을 위한 API 문서입니다.",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"clientCredentials": []
|
||||
}
|
||||
],
|
||||
"components": {
|
||||
"securitySchemes": {
|
||||
"clientCredentials": {
|
||||
"type": "oauth2",
|
||||
"flows": {
|
||||
"clientCredentials": {
|
||||
"tokenUrl": "/api/v1/oauth/token",
|
||||
"scopes": {
|
||||
"api": "API 접근 권한"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"paths": {
|
||||
"/api/v1/oauth/token": {
|
||||
"post": {
|
||||
"summary": "케이뱅크 액세스 토큰 발급",
|
||||
"summary": "광주은행 액세스 토큰 발급",
|
||||
"description": "client_credentials grant type을 사용하여 액세스 토큰을 발급받습니다.",
|
||||
"security": [
|
||||
{
|
||||
"clientCredentials": ["api"]
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"required": true,
|
||||
"content": {
|
||||
@@ -26,12 +51,12 @@
|
||||
"client_id": {
|
||||
"type": "string",
|
||||
"maxLength": 256,
|
||||
"description": "케이뱅크에서 발급한 client id"
|
||||
"description": "광주은행에서 발급한 client id"
|
||||
},
|
||||
"client_secret": {
|
||||
"type": "string",
|
||||
"maxLength": 512,
|
||||
"description": "케이뱅크에서 발급한 client secret"
|
||||
"description": "광주은행에서 발급한 client secret"
|
||||
},
|
||||
"scope": {
|
||||
"type": "string",
|
||||
|
||||
Reference in New Issue
Block a user