-
Notifications
You must be signed in to change notification settings - Fork 5
/
open-notify.yaml
64 lines (64 loc) · 2.3 KB
/
open-notify.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
openapi: 3.0.0
info:
title: Open Notify API
version: 1.0.0
description: APIs for getting information about the current number of people in space and the current location of the ISS.
servers:
- url: http://api.open-notify.org
paths:
/astros.json:
get:
summary: Get information about the current number of people in space
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A description of the status of the API request.
number:
type: integer
description: The current number of people in space.
people:
type: array
description: An array of objects representing the people in space.
items:
type: object
properties:
name:
type: string
description: The name of the person in space.
craft:
type: string
description: The name of the spacecraft the person is on.
/iss-now.json:
get:
summary: Get the current location of the ISS
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
message:
type: string
description: A description of the status of the API request.
timestamp:
type: integer
description: The Unix timestamp for when the location was valid.
iss_position:
type: object
description: An object representing the latitude and longitude of the ISS.
properties:
latitude:
type: string
description: The current latitude of the ISS.
longitude:
type: string
description: The current longitude of the ISS.