LineupGPT
LineupGPT · GPT Actions
LineupGPT Plugin
Obtain real-time wave and wind forecasts for surf spots in northern Spain and Portugal
GET /api/chatgpt/beachesGet the list of available beaches and their coordinatesGET /api/chatgpt/beaches/{slug}Get the forecast for a beach, including waves, wind and tide data
原始 API 定义
{
"openapi": "3.0.1",
"info": {
"title": "LineupGPT Plugin",
"description": "Obtain real-time wave and wind forecasts for surf spots in northern Spain and Portugal",
"version": "v1"
},
"servers": [
{
"url": "https://lineupforecast.com"
}
],
"paths": {
"/api/chatgpt/beaches": {
"get": {
"operationId": "getAllBeaches",
"summary": "Get the list of available beaches and their coordinates",
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/getAllBeachesResponse"
}
}
}
}
}
}
},
"/api/chatgpt/beaches/{slug}": {
"get": {
"operationId": "getBeachForecast",
"summary": "Get the forecast for a beach, including waves, wind and tide data",
"parameters": [
{
"in": "path",
"name": "slug",
"required": true,
"schema": {
"type": "string"
},
"description": "The slug of the beach to get the forecast for"
}
],
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/getBeachResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"getAllBeachesResponse": {
"type": "object",
"properties": {
"beaches": {
"type": "array",
"items": {
"type": "string"
},
"description": "The list of available beaches and their coordinates."
}
}
},
"getBeachResponse": {
"type": "object",
"properties": {
"beaches": {
"type": "array",
"items": {
"type": "string"
},
"description": "The forecast for a beach, incluing wave, wind and tides for the week"
}
}
}
}
}
}