-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathmetar.pluginai.ai.yaml
37 lines (37 loc) · 974 Bytes
/
metar.pluginai.ai.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
openapi: 3.0.1
info:
title: Weather Report
description: Current weather data for cities and airports using METAR aviation feeds.
version: 'v1'
servers:
- url: https://metar.pluginai.ai
paths:
/index.php:
get:
operationId: getMetar
summary: Get the METAR weather data for the specified airport.
parameters:
- name: icao
in: query
description: The ICAO code of the airport.
required: true
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/getMetarResponse'
components:
schemas:
getMetarResponse:
type: object
properties:
icao:
type: string
description: The ICAO code of the airport.
metar:
type: string
description: The METAR weather data for the specified airport.