{
  "swagger": "2.0",
  "info": {
    "title": "환율 조회 (Frankfurter)",
    "version": "1.0",
    "description": "Frankfurter 공개 API로 주요 통화의 최신 환율을 조회한다 (무료·무인증·JSON — 실습용). ECB 고시 기준, 영업일 1회 갱신"
  },
  "host": "api.frankfurter.dev",
  "basePath": "/v1",
  "schemes": [
    "https"
  ],
  "paths": {
    "/latest": {
      "get": {
        "operationId": "GetLatestRates",
        "summary": "최신 환율 조회",
        "description": "기준 통화(base) 대비 대상 통화(symbols)의 최신 환율을 반환한다. 외화 견적을 원화로 환산할 때 사용한다.",
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "name": "base",
            "in": "query",
            "type": "string",
            "required": true,
            "description": "기준 통화 코드 (예: USD, EUR)",
            "default": "USD"
          },
          {
            "name": "symbols",
            "in": "query",
            "type": "string",
            "required": true,
            "description": "대상 통화 코드, 쉼표로 여러 개 (예: KRW 또는 KRW,JPY)",
            "default": "KRW"
          },
          {
            "name": "amount",
            "in": "query",
            "type": "number",
            "required": false,
            "description": "환산할 금액 (생략 시 1 기준 환율)"
          }
        ],
        "responses": {
          "200": {
            "description": "환율 응답",
            "schema": {
              "type": "object",
              "properties": {
                "amount": {
                  "type": "number",
                  "description": "환산 기준 금액"
                },
                "base": {
                  "type": "string",
                  "description": "기준 통화"
                },
                "date": {
                  "type": "string",
                  "description": "고시 일자"
                },
                "rates": {
                  "type": "object",
                  "description": "통화별 환율 (예: {\"KRW\": 1485.32})"
                }
              }
            }
          }
        }
      }
    }
  }
}