Extract and convert plain text API specifications into structured OpenAPI/Swagger JSON format. Use when processing API documentation, converting unstructured API specs to OpenAPI, or when the user provides plain text API specifications with endpoints, parameters, and response schemas. Supports Korean, English, and multi-language API documentation.
Converts plain text API specifications (including Korean documentation) into structured OpenAPI 3.0 JSON format.
Use this Skill when:
Analyze the plain text input to identify these components:
/v1/oauth2/token)application/x-www-form-urlencoded, application/json)Convert the extracted information into OpenAPI 3.0 format:
{
"openapi": "3.0.0",
"info": {
"title": "API Specification",
"version": "1.0.0"
},
"paths": {
"/endpoint/path": {
"method": {
"summary": "Operation title",
"description": "Detailed description",
"requestBody": {
"required": true,
"content": {
"content-type": {
"schema": {
"type": "object",
"required": ["field1", "field2"],
"properties": {
"field1": {
"type": "string",
"description": "Field description",
"example": "example value"
}
}
}
}
}
},
"responses": {
"200": {
"description": "Success response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"field1": {
"type": "string",
"description": "Response field"
}
}
}
}
}
}
}
}
}
}
}
Map common type descriptions to OpenAPI types:
string → "string"integer, int64, int32 → "integer" with formatboolean, bool → "boolean"number, float, double → "number" with formatarray → "array" with items schemaobject → "object" with propertiesIdentify required fields by looking for:
Optional fields should NOT be in the required array.
Extract example values from:
Place examples in the example field of each property.
Extract all response status codes mentioned:
Keep all description text, including:
Return the complete OpenAPI JSON with:
Input:
인증 토큰 발급 요청
POST
/v1/oauth2/token
API 활용을 위한 인증 토큰을 발급/갱신 요청합니다.
Request
application/x-www-form-urlencoded
Body required
client_id
string
required
제공된 애플리케이션 ID
Example: 7dMvteboKNHwyRremLXXXX
timestamp
integer<int64>
required
전자서명 생성 시 사용된 밀리초(millisecond) 단위의 Unix 시간. 5분간 유효
Example: 1706671059230
grant_type
string
required
OAuth2 인증 방식.
- 고정값 client_credentials 사용
Example: client_ccp_2sRZTWJVbDtHPoz9OXXXX
Responses
200
400
403
500
발급 성공 결과
application/json
Schema
access_token
string
인증 토큰
expires_in
integer<int64>
인증 유효 기간(초)
token_type
string
인증 토큰 종류
Output:
{
"openapi": "3.0.0",
"info": {
"title": "API Specification",
"version": "1.0.0"
},
"paths": {
"/v1/oauth2/token": {
"post": {
"summary": "인증 토큰 발급 요청",
"description": "API 활용을 위한 인증 토큰을 발급/갱신 요청합니다.",
"requestBody": {
"required": true,
"content": {
"application/x-www-form-urlencoded": {
"schema": {
"type": "object",
"required": ["client_id", "timestamp", "grant_type"],
"properties": {
"client_id": {
"type": "string",
"description": "제공된 애플리케이션 ID",
"example": "7dMvteboKNHwyRremLXXXX"
},
"timestamp": {
"type": "integer",
"format": "int64",
"description": "전자서명 생성 시 사용된 밀리초(millisecond) 단위의 Unix 시간. 5분간 유효",
"example": 1706671059230
},
"grant_type": {
"type": "string",
"description": "OAuth2 인증 방식.\n- 고정값 client_credentials 사용",
"example": "client_ccp_2sRZTWJVbDtHPoz9OXXXX"
}
}
}
}
}
},
"responses": {
"200": {
"description": "발급 성공 결과",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"access_token": {
"type": "string",
"description": "인증 토큰"
},
"expires_in": {
"type": "integer",
"format": "int64",
"description": "인증 유효 기간(초)"
},
"token_type": {
"type": "string",
"description": "인증 토큰 종류"
}
}
}
}
}
},
"400": {
"description": "Bad Request"
},
"403": {
"description": "Forbidden"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
}
}
Always output:
Before outputting, verify: