-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathearthquake.beta3.dev.yaml
48 lines (47 loc) · 1.24 KB
/
earthquake.beta3.dev.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
44
45
46
47
48
openapi: 3.0.1
info:
title: Earthquake Info
description: Allows the user to query about the latest earthquake information.
version: 'v1'
servers:
- url: https://earthquake.beta3.dev
#- url: http://localhost:5003
#- url: https://earthquake.usgs.gov
paths:
/earthquakes/feed/v1.0/summary/4.5_day.geojson:
get:
operationId: queryEarthquake
summary: Get the list of earthquakes
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/queryResponse'
components:
schemas:
queryResponse:
type: object
properties:
features:
type: array
items:
type:
$ref: '#/components/schemas/feature'
description: The list of earthquakes
feature:
type: object
properties:
properties:
type: object
properties:
mag:
type: int
description: "magnitude of the earthquake"
place:
type: string
description: "the location of the earthquake"
time:
type: timestamp
description: "when the earthquake occurs"