forked from swagger-api/swagger-editor
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsimpleTrippin.yaml
173 lines (171 loc) · 4.04 KB
/
simpleTrippin.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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# Handcrafted YAML representation of http://services.odata.org/V4/TripPinServiceRW/$metadata
api:
name: "TripPin OData Reference Service"
version:
current: 1.0.0
description: "TripPin is a fictional reference service demonstrating the capabilities of OData v4."
namespace: "Microsoft.OData.Service.Sample.TrippinInMemory.Models"
host: services.odata.org
basePath: /TripPinRESTierService
termsOfService: http://swagger.io/terms/
contact:
name: API Support
url: http://www.swagger.io/support
email: [email protected]
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
auth: none
conformance: minimal
supportsFilterFunctions: [contains, endswith, startswith, length, indexof, substring, tolower, toupper, trim, concat, year, month, day, hour, minute, second, round, floor, ceiling, cast, isof]
root:
- name: People
type: Person[]
searchable: true
insertable: true
disallowNavigation: Features
disallowInsert: [Trips, Features]
- name: Airlines
type: Airline[]
concurrencyProperties: Name
searchable: true
insertable: true
- name: Airports
type: Airport[]
searchable: true
insertable: false
deletable: false
- name: Me
type: Person
- name: GetNearestAirport
params:
- name: lat
type: double
- name: lon
type: double
returns: Airport
- name: ResetDataSource
types:
- name: PersonGender
members:
- name: Male
value: 0
- name: Female
value: 1
- name: Unknow
value: 2
flags: false
underlyingType: int32
- name: Feature
members:
- name: Feature1
value: 0
- name: Feature2
value: 1
- name: Feature3
value: 2
- name: Feature4
value: 3
flags: false
underlyingType: int32
- name: City
optionalProperties: [CountryRegion, Name, Region]
- name: Location
requiredProperties:
- Address
- name: City
type: City
- name: AirportLocation
baseType: Location
optionalProperties:
- name: Loc
type: edm.geographyPoint
- name: Person
key:
- name: UserName
type: string
dynamic: true
requiredProperties:
- name: FirstName
- name: Gender
type: PersonGender
optionalProperties:
- name: LastName
- name: MiddleName
- name: Age
type: int64
- name: Emails
type: string[]
- name: AddressInfo
type: Location[]
- name: HomeAddress
type: Location
- name: FavoriteFeature
type: Feature
- name: Features
type: Feature[]
- name: Trips
type: Trip[]
containsTarget: true
operations:
- name: GetFavoriteAirline
returns: Airline
- name: UpdatePersonLastName
params:
- lastName
returns: Trip[]
- name: ShareTrip
params:
- userName
- name: tripId
type: int32
- name: Airline
key:
- name: AirlineCode
type: string
requiredProperties: Name
- name: Airport
key:
- name: IcaoCode
type: string
optionalProperties:
- name: Name
- name: IataCode
- name: Location
type: AirportLocation
- name: PlanItem
key:
- name: PlanItemId
type: integer
requiredProperties:
- name: StartsAt
type: dateTimeOffset
- name: EndsAt
type: dateTimeOffset
- name: duration
type: duration
optionalProperties:
- ConfirmationCode
- name: Trip
key:
- name: TripId
type: int32
requiredProperties:
- name: ShareId
type: guid
- name: Budget
type: single
- name: StartsAt
type: dateTimeOffset
- name: EndsAt
type: dateTimeOffset
- name: PlanItems
type: PlanItem[]
optionalProperties:
- Name
- Description
- name: Tags
type: string[]
operations:
- name: GetInvolvedPeople
returns: Person[]