-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcity-bikes.yaml
124 lines (124 loc) · 4 KB
/
city-bikes.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
openapi: 3.0.0
info:
title: CityBikes API
version: 1.0.0
description: The CityBikes API allows developers to access and integrate bike sharing data with other applications.
servers:
- url: http://api.citybik.es/v2
paths:
/networks:
get:
summary: Retrieve a list of bike sharing networks
operationId: getNetworks
parameters:
- in: query
name: fields
description: Comma-separated list of fields to include in the response
schema:
type: string
responses:
"200":
description: A list of bike sharing networks
content:
application/json:
schema:
type: object
properties:
networks:
type: array
items:
type: object
properties:
href:
type: string
id:
type: string
name:
type: string
company:
type: string
location:
type: object
properties:
latitude:
type: number
longitude:
type: number
city:
type: string
country:
type: string
/networks/{network_id}:
get:
summary: Retrieve bike sharing data for a specific network
operationId: getNetworkData
parameters:
- in: path
name: network_id
description: The ID of the bike sharing network to retrieve data for
required: true
schema:
type: string
- in: query
name: fields
description: Comma-separated list of fields to include in the response
schema:
type: string
responses:
"200":
description: Bike sharing data for the specified network
content:
application/json:
schema:
type: object
properties:
network:
type: object
properties:
href:
type: string
id:
type: string
name:
type: string
company:
type: string
location:
type: object
properties:
latitude:
type: number
longitude:
type: number
city:
type: string
country:
type: string
stations:
type: array
items:
type: object
properties:
name:
type: string
timestamp:
type: string
longitude:
type: number
latitude:
type: number
free_bikes:
type: integer
empty_slots:
type: integer
id:
type: string
"400":
description: Invalid input parameter
content:
application/json:
schema:
type: object
properties:
error:
type: string