-
Notifications
You must be signed in to change notification settings - Fork 0
/
api_v1.yaml
43 lines (43 loc) · 1015 Bytes
/
api_v1.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
38
39
40
41
42
43
openapi: 3.0.1
info:
title: Readonly API for weather forecast service
description: >-
Multiline
description of service.
version: 1.0.0
servers:
- url: 'https://weather.forecast/v1'
paths:
/city:
get:
summary: Get forecast for city by name
operationId: getForecastInCity
parameters:
- name: names
in: query
description: Latin city names
required: true
schema:
type: array
items:
type: string
default: Moscow
responses:
'200':
description: successful operation
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Forecast'
'400':
description: any error
content:
application/json:
schema:
type: object
components:
schemas:
Forecast:
$ref: ./forecast.json