인지기능 테스트 AI

인지기능 테스트 AI · GPT 작업

World Time API

Provides current time information for various timezones around the world.

  • GET /api/timezone/Asia/SeoulGetTimezoneInformation

    Get current time information for a specified timezone

원본 API 스키마
{
  "openapi": "3.1.0",
  "info": {
    "title": "World Time API",
    "description": "Provides current time information for various timezones around the world.",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://worldtimeapi.org/"
    }
  ],
  "paths": {
    "/api/timezone/Asia/Seoul": {
      "get": {
        "description": "Get current time information for a specified timezone",
        "operationId": "GetTimezoneInformation",
        "parameters": [
          {
            "name": "region",
            "in": "path",
            "description": "The region of the timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "path",
            "description": "The city of the timezone",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "abbreviation": {
                      "type": "string"
                    },
                    "client_ip": {
                      "type": "string",
                      "format": "ipv4"
                    },
                    "datetime": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "day_of_week": {
                      "type": "integer"
                    },
                    "day_of_year": {
                      "type": "integer"
                    },
                    "dst": {
                      "type": "boolean"
                    },
                    "dst_from": {
                      "type": "string",
                      "nullable": true
                    },
                    "dst_offset": {
                      "type": "integer"
                    },
                    "dst_until": {
                      "type": "string",
                      "nullable": true
                    },
                    "raw_offset": {
                      "type": "integer"
                    },
                    "timezone": {
                      "type": "string"
                    },
                    "unixtime": {
                      "type": "integer"
                    },
                    "utc_datetime": {
                      "type": "string",
                      "format": "date-time"
                    },
                    "utc_offset": {
                      "type": "string"
                    },
                    "week_number": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthorized"
          },
          "500": {
            "description": "Internal server error"
          }
        },
        "deprecated": false
      }
    }
  },
  "components": {
    "schemas": {}
  }
}