-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
38 lines (36 loc) · 951 Bytes
/
openapi.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
swagger: "2.0"
info:
description: Set Up the Flask Weather App that pulls climate data.
version: "1.0.0"
title: Surf Up
consumes:
- application/json
produces:
- application/json
basePath: /api/
# Paths supported by the server application
paths:
/precipitation:
get:
operationId: app.precipitation
tags:
- Precipitation
summary: Return the precipitation data for the last year.
description: precipitation return an array with a pair of (Date, Float).
responses:
200:
description: Successfully read precipitation data.
schema:
type: "array"
items:
properties:
id:
type: integer
station:
type: "string"
date:
type: "string"
prcp:
type: number
tobs:
type: number