St. Lucie Life Saver
St. Lucie Life Saver · GPT 작업
Weather Alerts API
API for retrieving active weather alerts for specific areas.
GET /alerts/activeRetrieve active weather alerts for a specific areaFetches active weather alerts for a given area, such as a state or territory.
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "Weather Alerts API",
"version": "1.0.0",
"description": "API for retrieving active weather alerts for specific areas."
},
"servers": [
{
"url": "https://api.weather.gov"
}
],
"paths": {
"/alerts/active": {
"get": {
"operationId": "getActiveWeatherAlerts",
"summary": "Retrieve active weather alerts for a specific area",
"description": "Fetches active weather alerts for a given area, such as a state or territory.",
"parameters": [
{
"name": "area",
"in": "query",
"description": "State/territory code or marine area code for which to retrieve alerts",
"required": true,
"schema": {
"type": "string",
"example": "FL"
}
}
],
"responses": {
"200": {
"description": "Successful response with weather alerts for the specified area",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"features": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
},
"400": {
"description": "Bad request, such as an invalid area code"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
}
}