@api-client/core 0.8.0 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/browser.d.ts +5 -4
- package/build/browser.js +1 -0
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +5 -4
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/oauth-popup.html +29 -0
- package/build/src/amf/AmfMixin.d.ts +2 -1
- package/build/src/amf/AmfMixin.js.map +1 -1
- package/build/src/amf/AmfShapeGenerator.d.ts +2 -0
- package/build/src/amf/AmfShapeGenerator.js +2 -0
- package/build/src/amf/AmfShapeGenerator.js.map +1 -1
- package/build/src/amf/ApiSchemaValues.d.ts +4 -4
- package/build/src/amf/ApiSchemaValues.js.map +1 -1
- package/build/src/amf/Utils.js +3 -1
- package/build/src/amf/Utils.js.map +1 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js +2 -1
- package/build/src/amf/data-node/XmlDataNodeGenerator.js.map +1 -1
- package/build/src/amf/shape/ShapeBase.d.ts +1 -1
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js +4 -2
- package/build/src/amf/shape/ShapeJsonSchemaGenerator.js.map +1 -1
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.d.ts +13 -13
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js +25 -7
- package/build/src/amf/shape/ShapeXmlSchemaGenerator.js.map +1 -1
- package/build/src/authorization/OAuth2Authorization.d.ts +4 -4
- package/build/src/authorization/OAuth2Authorization.js +7 -7
- package/build/src/authorization/OAuth2Authorization.js.map +1 -1
- package/build/src/authorization/OidcAuthorization.js +0 -1
- package/build/src/authorization/OidcAuthorization.js.map +1 -1
- package/build/src/data/XmlReader.js +2 -0
- package/build/src/data/XmlReader.js.map +1 -1
- package/build/src/events/CustomEvent.d.ts +1 -1
- package/build/src/events/CustomEvent.js +1 -1
- package/build/src/lib/logging/DefaultLogger.js +1 -0
- package/build/src/lib/logging/DefaultLogger.js.map +1 -1
- package/build/src/lib/parsers/UriTemplate.js +1 -1
- package/build/src/lib/parsers/UrlEncoder.js +1 -0
- package/build/src/lib/parsers/UrlEncoder.js.map +1 -1
- package/build/src/lib/timers/Timers.d.ts +9 -0
- package/build/src/lib/timers/Timers.js +13 -0
- package/build/src/lib/timers/Timers.js.map +1 -1
- package/build/src/mocking/LegacyInterfaces.d.ts +1 -2
- package/build/src/mocking/LegacyMock.js +0 -1
- package/build/src/mocking/LegacyMock.js.map +1 -1
- package/build/src/mocking/legacy/Http.js +1 -1
- package/build/src/mocking/legacy/Http.js.map +1 -1
- package/build/src/models/data/DataNamespace.d.ts +0 -1
- package/build/src/models/data/DataNamespace.js +1 -1
- package/build/src/models/data/DataNamespace.js.map +1 -1
- package/build/src/models/store/Permission.js.map +1 -1
- package/build/src/models/transformers/ArcLegacyTransformer.js +1 -0
- package/build/src/models/transformers/ArcLegacyTransformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV21Transformer.d.ts +1 -2
- package/build/src/models/transformers/PostmanV21Transformer.js +2 -0
- package/build/src/models/transformers/PostmanV21Transformer.js.map +1 -1
- package/build/src/models/transformers/PostmanV2Transformer.js +2 -0
- package/build/src/models/transformers/PostmanV2Transformer.js.map +1 -1
- package/build/src/runtime/store/AuthSdk.js +1 -0
- package/build/src/runtime/store/AuthSdk.js.map +1 -1
- package/build/src/runtime/store/SdkBase.js.map +1 -1
- package/build/src/testing/TestCliHelper.js.map +1 -1
- package/data/apis/APIC-187/APIC-187.raml +21 -0
- package/data/apis/APIC-187/dataType.raml +132 -0
- package/data/apis/APIC-187/example.raml +84 -0
- package/data/apis/APIC-188/APIC-188.raml +21 -0
- package/data/apis/APIC-188/dataType.raml +132 -0
- package/data/apis/APIC-188/example.raml +84 -0
- package/data/apis/APIC-233/APIC-233.raml +15 -0
- package/data/apis/APIC-391/APIC-391.raml +44 -0
- package/data/apis/APIC-391/examples/post-body-request-example.raml +7 -0
- package/data/apis/APIC-487/APIC-487.raml +36 -0
- package/data/apis/APIC-655/APIC-655.raml +44 -0
- package/data/apis/APIC-655/delivery.json +12 -0
- package/data/apis/APIC-689/APIC-689.raml +20 -0
- package/data/apis/APIC-690/APIC-690.raml +17 -0
- package/data/apis/APIC-690/datatypes/Address.raml +10 -0
- package/data/apis/APIC-690/datatypes/Customer.raml +17 -0
- package/data/apis/APIC-690/examples/CustomerExample2.raml +17 -0
- package/data/apis/APIC-690/examples/CustomersExample.raml +34 -0
- package/data/apis/SE-10469/Purchase-Order-oagis-id-dd32f9c6c01048a19e15c423c9c741ae.json +1383 -0
- package/data/apis/SE-10469/SE-10469.raml +11 -0
- package/data/apis/SE-13092/Examples/PersonExample.raml +7 -0
- package/data/apis/SE-13092/SE-13092.raml +37 -0
- package/data/apis/SE-13092/datatypes/Address.raml +5 -0
- package/data/apis/SE-13092/datatypes/InlineType.raml +5 -0
- package/data/apis/SE-13092/datatypes/Person.raml +15 -0
- package/data/apis/SE-22063/SE-22063.raml +14 -0
- package/data/apis/SE-22063/stock.raml +41 -0
- package/data/apis/amf-helper-api/amf-helper-api.raml +1024 -0
- package/data/apis/amf-helper-api/examples/comment-example.json +42 -0
- package/data/apis/amf-helper-api/examples/commentCreateRequest-example.json +7 -0
- package/data/apis/amf-helper-api/examples/commentList-example.json +48 -0
- package/data/apis/amf-helper-api/examples/person.json +14 -0
- package/data/apis/amf-helper-api/examples/person.raml +13 -0
- package/data/apis/amf-helper-api/examples/person.xml +14 -0
- package/data/apis/amf-helper-api/libraries/comment-lib.raml +143 -0
- package/data/apis/amf-helper-api/library.raml +7 -0
- package/data/apis/amf-helper-api/schemas/person.json +104 -0
- package/data/apis/amf-helper-api/schemas/person.xsd +26 -0
- package/data/apis/amf-helper-api/traits/file.raml +33 -0
- package/data/apis/amf-helper-api/traits/pagination.raml +80 -0
- package/data/apis/amf-helper-api/traits/results.raml +19 -0
- package/data/apis/amf-helper-api/traits/visibility.raml +14 -0
- package/data/apis/amf-helper-api/types/app-person.raml +101 -0
- package/data/apis/amf-helper-api/types/dimensions.raml +24 -0
- package/data/apis/amf-helper-api/types/external-type.raml +7 -0
- package/data/apis/amf-helper-api/types/image.raml +23 -0
- package/data/apis/amf-helper-api/types/product.raml +52 -0
- package/data/apis/amf-helper-api/types/resource.raml +11 -0
- package/data/apis/amf-helper-api/types/standard-request.raml +50 -0
- package/data/apis/amf-helper-api/types/user.raml +37 -0
- package/data/apis/async-api/async-api.yaml +96 -0
- package/data/apis/example-generator-api/contact-email-example.raml +6 -0
- package/data/apis/example-generator-api/contact-example.raml +5 -0
- package/data/apis/example-generator-api/contact-fax-example.raml +5 -0
- package/data/apis/example-generator-api/contact-website-example.raml +2 -0
- package/data/apis/example-generator-api/example-1.raml +6 -0
- package/data/apis/example-generator-api/example-2.raml +9 -0
- package/data/apis/example-generator-api/example-3.raml +4 -0
- package/data/apis/example-generator-api/example-4.raml +2 -0
- package/data/apis/example-generator-api/example-5.raml +4 -0
- package/data/apis/example-generator-api/example-6.raml +2 -0
- package/data/apis/example-generator-api/example-7.raml +5 -0
- package/data/apis/example-generator-api/example-generator-api.raml +423 -0
- package/data/apis/example-generator-api/example.json +14 -0
- package/data/apis/example-generator-api/example.xml +15 -0
- package/data/apis/example-generator-api/example.xsd +26 -0
- package/data/apis/example-generator-api/examples/employee.raml +7 -0
- package/data/apis/example-generator-api/examples/employees.raml +7 -0
- package/data/apis/example-generator-api/linked-named-example.raml +21 -0
- package/data/apis/example-generator-api/named-example-with-link.raml +5 -0
- package/data/apis/example-generator-api/named-example.raml +9 -0
- package/data/apis/example-generator-api/user-json-example.raml +17 -0
- package/data/apis/example-generator-api/user-raml-example.raml +37 -0
- package/data/apis/example-generator-api/user.json +8 -0
- package/data/apis/example-generator-api/user.raml +18 -0
- package/data/apis/example-generator-api/users-json-example.raml +17 -0
- package/data/apis/example-generator-api/users-raml-example.raml +32 -0
- package/data/apis/example-generator-api/users.json +8 -0
- package/data/apis/expanded-api/expanded-api.raml +8 -0
- package/data/apis/flattened-api/flattened-api.raml +8 -0
- package/data/apis/multiple-servers/multiple-servers.yaml +112 -0
- package/data/apis/schema-api/schema-api.raml +13 -1
- package/data/apis/tracked-examples/datatypes/employee.raml +5 -0
- package/data/apis/tracked-examples/examples/employee.raml +4 -0
- package/data/apis/tracked-examples/examples/employees.raml +8 -0
- package/data/apis/tracked-examples/tracked-to-linked.raml +28 -0
- package/data/model.js +19 -0
- package/data/models/APIC-187.json +11398 -0
- package/data/models/APIC-188.json +11398 -0
- package/data/models/APIC-233.json +539 -0
- package/data/models/APIC-391.json +1872 -0
- package/data/models/APIC-487.json +1225 -0
- package/data/models/APIC-655.json +3109 -0
- package/data/models/APIC-689.json +761 -0
- package/data/models/APIC-690.json +5992 -0
- package/data/models/SE-10469.json +22882 -0
- package/data/models/SE-13092.json +2715 -0
- package/data/models/SE-22063.json +2276 -0
- package/data/models/amf-helper-api.json +85908 -0
- package/data/models/async-api.json +3108 -0
- package/data/models/example-generator-api.json +44978 -0
- package/data/models/expanded-api.json +251 -0
- package/data/models/flattened-api.json +251 -0
- package/data/models/multiple-servers.json +2753 -0
- package/data/models/schema-api.json +436 -428
- package/data/models/tracked-to-linked.json +1790 -0
- package/package.json +6 -5
- package/src/amf/AmfMixin.ts +3 -2
- package/src/amf/AmfShapeGenerator.ts +5 -3
- package/src/amf/ApiSchemaValues.ts +5 -5
- package/src/amf/Utils.ts +6 -4
- package/src/amf/data-node/XmlDataNodeGenerator.ts +2 -1
- package/src/amf/shape/ShapeBase.ts +1 -1
- package/src/amf/shape/ShapeJsonSchemaGenerator.ts +4 -2
- package/src/amf/shape/ShapeXmlSchemaGenerator.ts +85 -66
- package/src/authorization/OAuth2Authorization.ts +33 -32
- package/src/authorization/OidcAuthorization.ts +3 -4
- package/src/data/XmlReader.ts +7 -5
- package/src/events/CustomEvent.ts +1 -1
- package/src/lib/logging/DefaultLogger.ts +1 -0
- package/src/lib/parsers/UriTemplate.ts +1 -1
- package/src/lib/parsers/UrlEncoder.ts +1 -0
- package/src/lib/timers/Timers.ts +14 -0
- package/src/mocking/LegacyInterfaces.ts +1 -2
- package/src/mocking/LegacyMock.ts +0 -1
- package/src/mocking/legacy/Http.ts +1 -1
- package/src/models/data/DataNamespace.ts +2 -2
- package/src/models/store/Permission.ts +1 -1
- package/src/models/transformers/ArcLegacyTransformer.ts +1 -0
- package/src/models/transformers/PostmanV21Transformer.ts +3 -2
- package/src/models/transformers/PostmanV2Transformer.ts +2 -0
- package/src/runtime/store/AuthSdk.ts +1 -0
- package/src/runtime/store/SdkBase.ts +1 -0
- package/src/testing/TestCliHelper.ts +1 -0
|
@@ -0,0 +1,1024 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
title: Navigation demo API
|
|
3
|
+
|
|
4
|
+
version: v2
|
|
5
|
+
baseUri: https://api.mulesoft.com/{version}
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols: [HTTPS]
|
|
8
|
+
|
|
9
|
+
uses:
|
|
10
|
+
myLib: library.raml
|
|
11
|
+
CommentLib: libraries/comment-lib.raml
|
|
12
|
+
|
|
13
|
+
traits:
|
|
14
|
+
Paginated: !include traits/pagination.raml
|
|
15
|
+
results: !include traits/results.raml
|
|
16
|
+
visibility: !include traits/visibility.raml
|
|
17
|
+
file: !include traits/file.raml
|
|
18
|
+
|
|
19
|
+
annotationTypes:
|
|
20
|
+
deprecated: string
|
|
21
|
+
annotationTest: nil
|
|
22
|
+
clearanceLevel:
|
|
23
|
+
properties:
|
|
24
|
+
level:
|
|
25
|
+
enum: [ low, medium, high ]
|
|
26
|
+
required: true
|
|
27
|
+
signature:
|
|
28
|
+
pattern: "\\d{3}-\\w{12}"
|
|
29
|
+
required: true
|
|
30
|
+
|
|
31
|
+
securitySchemes:
|
|
32
|
+
basic:
|
|
33
|
+
type: Basic Authentication
|
|
34
|
+
description: |
|
|
35
|
+
Test basic auth method
|
|
36
|
+
other:
|
|
37
|
+
displayName: Digest
|
|
38
|
+
type: Digest Authentication
|
|
39
|
+
OAuth:
|
|
40
|
+
type: OAuth 2.0
|
|
41
|
+
displayName: Regular OAuth 2.0 definition
|
|
42
|
+
settings:
|
|
43
|
+
accessTokenUri: https://token.com
|
|
44
|
+
authorizationUri: https://auth.com
|
|
45
|
+
scopes: [profile, email]
|
|
46
|
+
describedBy:
|
|
47
|
+
queryParameters:
|
|
48
|
+
access_token:
|
|
49
|
+
type: string
|
|
50
|
+
description: Apply access token here.
|
|
51
|
+
headers:
|
|
52
|
+
Authorization:
|
|
53
|
+
type: string
|
|
54
|
+
|
|
55
|
+
resourceTypes:
|
|
56
|
+
standardRequest: !include types/standard-request.raml
|
|
57
|
+
|
|
58
|
+
documentation:
|
|
59
|
+
- title: How to begin
|
|
60
|
+
content: |
|
|
61
|
+
Example content
|
|
62
|
+
- title: Other documentation entry
|
|
63
|
+
content: |
|
|
64
|
+
Example content
|
|
65
|
+
types:
|
|
66
|
+
Image: !include types/image.raml
|
|
67
|
+
Resource: !include types/resource.raml
|
|
68
|
+
AppPerson: !include types/app-person.raml
|
|
69
|
+
Product: !include types/product.raml
|
|
70
|
+
Dimension: !include types/dimensions.raml
|
|
71
|
+
SchemaPerson:
|
|
72
|
+
type: !include schemas/person.json
|
|
73
|
+
example: !include examples/person.json
|
|
74
|
+
Picture:
|
|
75
|
+
displayName: Pic
|
|
76
|
+
type: Resource
|
|
77
|
+
description: The user's profile picture.
|
|
78
|
+
properties:
|
|
79
|
+
url:
|
|
80
|
+
(annotationTest):
|
|
81
|
+
type: string
|
|
82
|
+
required: false
|
|
83
|
+
description: A URL that points to a profile picture of this user.
|
|
84
|
+
dimension: Dimension
|
|
85
|
+
ComplexInclusion:
|
|
86
|
+
type: Product
|
|
87
|
+
properties:
|
|
88
|
+
dimension: !include types/dimensions.raml
|
|
89
|
+
Property:
|
|
90
|
+
type: object
|
|
91
|
+
properties:
|
|
92
|
+
kind:
|
|
93
|
+
type: string
|
|
94
|
+
description: This is always drive#property.
|
|
95
|
+
default: drive#property
|
|
96
|
+
enum: [drive#property]
|
|
97
|
+
etag:
|
|
98
|
+
type: string
|
|
99
|
+
description: ETag of the property.
|
|
100
|
+
selfLink:
|
|
101
|
+
type: string
|
|
102
|
+
description: The link back to this property.
|
|
103
|
+
key:
|
|
104
|
+
type: string
|
|
105
|
+
description: The key of this property.
|
|
106
|
+
visibility:
|
|
107
|
+
type: string
|
|
108
|
+
description: The visibility of this property.
|
|
109
|
+
value:
|
|
110
|
+
type: string
|
|
111
|
+
description: The value of this property.
|
|
112
|
+
ImportFormat:
|
|
113
|
+
properties:
|
|
114
|
+
source:
|
|
115
|
+
type: string
|
|
116
|
+
description: The imported file's content type to convert from.
|
|
117
|
+
required: true
|
|
118
|
+
targets:
|
|
119
|
+
description: The possible content types to convert to.
|
|
120
|
+
type: string[]
|
|
121
|
+
required: true
|
|
122
|
+
Unionable:
|
|
123
|
+
type: ImportFormat | Picture
|
|
124
|
+
Arrable:
|
|
125
|
+
type: array
|
|
126
|
+
items: Picture
|
|
127
|
+
RecursiveShape:
|
|
128
|
+
(deprecated): This type is deprecated bauses it throws errors.
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
id: string
|
|
132
|
+
relatedTo:
|
|
133
|
+
type: RecursiveShape
|
|
134
|
+
description: This is recursive.
|
|
135
|
+
Person:
|
|
136
|
+
type: object
|
|
137
|
+
discriminator: kind
|
|
138
|
+
properties:
|
|
139
|
+
kind: string
|
|
140
|
+
name: string
|
|
141
|
+
Employee:
|
|
142
|
+
type: Person
|
|
143
|
+
properties:
|
|
144
|
+
employeeId: string
|
|
145
|
+
User:
|
|
146
|
+
type: Person
|
|
147
|
+
properties:
|
|
148
|
+
userId: string
|
|
149
|
+
Feature:
|
|
150
|
+
description: |
|
|
151
|
+
A feature to test enum values in the URI parameters.
|
|
152
|
+
type: string
|
|
153
|
+
enum:
|
|
154
|
+
- A
|
|
155
|
+
- B
|
|
156
|
+
- C
|
|
157
|
+
HasHome:
|
|
158
|
+
type: object
|
|
159
|
+
properties:
|
|
160
|
+
homeAddress: string
|
|
161
|
+
IsOnFarm:
|
|
162
|
+
type: object
|
|
163
|
+
properties:
|
|
164
|
+
farmAddress: string
|
|
165
|
+
Mamal:
|
|
166
|
+
type: object
|
|
167
|
+
properties:
|
|
168
|
+
gender: string
|
|
169
|
+
name: string
|
|
170
|
+
Cat:
|
|
171
|
+
type: Mamal
|
|
172
|
+
properties:
|
|
173
|
+
color: string
|
|
174
|
+
Dog:
|
|
175
|
+
type: Mamal
|
|
176
|
+
properties:
|
|
177
|
+
fangs: string
|
|
178
|
+
Parrot:
|
|
179
|
+
type: Mamal
|
|
180
|
+
properties:
|
|
181
|
+
tail: string
|
|
182
|
+
MaFile:
|
|
183
|
+
type: file
|
|
184
|
+
displayName: My file
|
|
185
|
+
description: This is a file description
|
|
186
|
+
minLength: 1
|
|
187
|
+
maxLength: 10
|
|
188
|
+
# required: true
|
|
189
|
+
# pattern: test
|
|
190
|
+
# multipleOf: 20
|
|
191
|
+
fileTypes:
|
|
192
|
+
- image/png
|
|
193
|
+
- image/jpeg
|
|
194
|
+
- image/jpg
|
|
195
|
+
- image/gif
|
|
196
|
+
lat-long:
|
|
197
|
+
properties:
|
|
198
|
+
lat: number
|
|
199
|
+
long: number
|
|
200
|
+
loc:
|
|
201
|
+
properties:
|
|
202
|
+
location: string
|
|
203
|
+
paging:
|
|
204
|
+
properties:
|
|
205
|
+
start?: number
|
|
206
|
+
page-size?: number
|
|
207
|
+
|
|
208
|
+
/files:
|
|
209
|
+
type: standardRequest
|
|
210
|
+
(deprecated): This resource is deprecated and will be removed.
|
|
211
|
+
displayName: Files
|
|
212
|
+
securedBy: [OAuth]
|
|
213
|
+
description: The files endpoint
|
|
214
|
+
post:
|
|
215
|
+
(deprecated): This operation is deprecated and will be removed.
|
|
216
|
+
displayName: Insert
|
|
217
|
+
description: |
|
|
218
|
+
Insert a new file.
|
|
219
|
+
This method supports an /upload URI and accepts uploaded media with the following characteristics:
|
|
220
|
+
|
|
221
|
+
- Maximum file size: 5120GB
|
|
222
|
+
- Accepted Media MIME types: */*
|
|
223
|
+
|
|
224
|
+
Note: Apps creating shortcuts with files.insert must specify the MIME type `application/vnd.google-apps.drive-sdk`.
|
|
225
|
+
|
|
226
|
+
Apps should specify a file extension in the title property when inserting files with the API. For example, an operation to insert a JPEG file should specify something like `"title": "cat.jpg"` in the metadata.
|
|
227
|
+
|
|
228
|
+
Subsequent GET requests include the read-only fileExtension property populated with the extension originally specified in the title property. When a Google Drive user requests to download a file, or when the file is downloaded through the sync client, Drive builds a full filename (with extension) based on the title. In cases where the extension is missing, Google Drive attempts to determine the extension based on the file's MIME type.
|
|
229
|
+
|
|
230
|
+
### HTTP request
|
|
231
|
+
|
|
232
|
+
This method provides media upload functionality through two separate URIs. For more details, see the document on media upload.
|
|
233
|
+
|
|
234
|
+
- Upload URI, for media upload requests: `POST https://www.googleapis.com/upload/drive/v2/files`
|
|
235
|
+
- Metadata URI, for metadata-only requests: `POST https://www.googleapis.com/drive/v2/files`
|
|
236
|
+
get:
|
|
237
|
+
securedBy: [basic]
|
|
238
|
+
displayName: list
|
|
239
|
+
description: |
|
|
240
|
+
Lists the user's files. Try it now or see an example.
|
|
241
|
+
|
|
242
|
+
Requests with `files.list` accept the `q` parameter, which is a search query combining one or more search terms. For more information, see Search for files.
|
|
243
|
+
|
|
244
|
+
Note: Note: This method returns all files by default. This includes files with trashed=true in the results. Use the trashed=false query parameter to filter these from the results.
|
|
245
|
+
/{fileId}:
|
|
246
|
+
displayName: A file
|
|
247
|
+
type: standardRequest
|
|
248
|
+
securedBy: [OAuth]
|
|
249
|
+
description: The file endpoint
|
|
250
|
+
uriParameters:
|
|
251
|
+
fileId:
|
|
252
|
+
type: string
|
|
253
|
+
get:
|
|
254
|
+
description: "Gets a file's metadata by ID."
|
|
255
|
+
patch:
|
|
256
|
+
description: Updates file metadata. This method supports patch semantics.
|
|
257
|
+
put:
|
|
258
|
+
description: Updates file metadata and/or content.
|
|
259
|
+
delete:
|
|
260
|
+
description: Permanently deletes a file by ID. Skips the trash. The currently authenticated user must own the file.
|
|
261
|
+
/copy:
|
|
262
|
+
post:
|
|
263
|
+
description: Creates a copy of the specified file.
|
|
264
|
+
/touch:
|
|
265
|
+
post:
|
|
266
|
+
description: "Set the file's updated time to the current server time."
|
|
267
|
+
/trash:
|
|
268
|
+
post:
|
|
269
|
+
description: Moves a file to the trash. The currently authenticated user must own the file.
|
|
270
|
+
/untrash:
|
|
271
|
+
post:
|
|
272
|
+
description: Restores a file from the trash.
|
|
273
|
+
/parents:
|
|
274
|
+
get:
|
|
275
|
+
description: "Lists a file's parents."
|
|
276
|
+
post:
|
|
277
|
+
description: Adds a parent folder for a file.
|
|
278
|
+
/{parentId}:
|
|
279
|
+
uriParameters:
|
|
280
|
+
parentId:
|
|
281
|
+
type: string
|
|
282
|
+
description: The ID of the parent.
|
|
283
|
+
get:
|
|
284
|
+
description: Gets a specific parent reference.
|
|
285
|
+
delete:
|
|
286
|
+
description: Removes a parent from a file.
|
|
287
|
+
/permissions:
|
|
288
|
+
get:
|
|
289
|
+
description: "Lists a file's permissions."
|
|
290
|
+
post:
|
|
291
|
+
description: |
|
|
292
|
+
Inserts a permission for a file.
|
|
293
|
+
|
|
294
|
+
Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
295
|
+
/{permissionId}:
|
|
296
|
+
uriParameters:
|
|
297
|
+
permissionId:
|
|
298
|
+
type: string
|
|
299
|
+
description: The ID for the permission.
|
|
300
|
+
get:
|
|
301
|
+
description: Gets a permission by ID.
|
|
302
|
+
put:
|
|
303
|
+
description: |
|
|
304
|
+
Updates a permission.
|
|
305
|
+
|
|
306
|
+
**Warning**: Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
307
|
+
delete:
|
|
308
|
+
description: |
|
|
309
|
+
Deletes a permission from a file.
|
|
310
|
+
|
|
311
|
+
Warning: Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
312
|
+
responses:
|
|
313
|
+
204:
|
|
314
|
+
patch:
|
|
315
|
+
description: |
|
|
316
|
+
Updates a permission. This method supports patch semantics.
|
|
317
|
+
|
|
318
|
+
**Warning**: Concurrent permissions operations on the same file are not supported; only the last update is applied.
|
|
319
|
+
/revisions:
|
|
320
|
+
get:
|
|
321
|
+
/{revisionId}:
|
|
322
|
+
uriParameters:
|
|
323
|
+
revisionId:
|
|
324
|
+
type: string
|
|
325
|
+
description: The ID of the revision.
|
|
326
|
+
default: defaultRevision
|
|
327
|
+
get:
|
|
328
|
+
|
|
329
|
+
put:
|
|
330
|
+
|
|
331
|
+
delete:
|
|
332
|
+
|
|
333
|
+
patch:
|
|
334
|
+
|
|
335
|
+
/comments:
|
|
336
|
+
get:
|
|
337
|
+
is: [ results ]
|
|
338
|
+
description: Lists a file's comments.
|
|
339
|
+
queryParameters:
|
|
340
|
+
updatedMin:
|
|
341
|
+
type: datetime
|
|
342
|
+
required: false
|
|
343
|
+
description: Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
|
|
344
|
+
responses:
|
|
345
|
+
200:
|
|
346
|
+
body:
|
|
347
|
+
application/json:
|
|
348
|
+
type: CommentLib.CommentList
|
|
349
|
+
example: !include examples/commentList-example.json
|
|
350
|
+
|
|
351
|
+
post:
|
|
352
|
+
description: Creates a new comment on the given file.
|
|
353
|
+
body:
|
|
354
|
+
application/json:
|
|
355
|
+
type: CommentLib.CommentWritable
|
|
356
|
+
example: !include examples/commentCreateRequest-example.json
|
|
357
|
+
responses:
|
|
358
|
+
201:
|
|
359
|
+
body:
|
|
360
|
+
application/json:
|
|
361
|
+
type: CommentLib.Comment
|
|
362
|
+
example: !include examples/comment-example.json
|
|
363
|
+
/{commentId}:
|
|
364
|
+
uriParameters:
|
|
365
|
+
commentId:
|
|
366
|
+
type: string
|
|
367
|
+
example: commant-id
|
|
368
|
+
get:
|
|
369
|
+
description: Gets a comment by ID.
|
|
370
|
+
|
|
371
|
+
put:
|
|
372
|
+
|
|
373
|
+
delete:
|
|
374
|
+
description: Deletes a comment.
|
|
375
|
+
|
|
376
|
+
patch:
|
|
377
|
+
|
|
378
|
+
/replies:
|
|
379
|
+
get:
|
|
380
|
+
|
|
381
|
+
post:
|
|
382
|
+
|
|
383
|
+
/{replyId}:
|
|
384
|
+
uriParameters:
|
|
385
|
+
replyId:
|
|
386
|
+
type: string
|
|
387
|
+
description: The ID of the reply.
|
|
388
|
+
get:
|
|
389
|
+
description: Gets a reply.
|
|
390
|
+
|
|
391
|
+
put:
|
|
392
|
+
description: Updates an existing reply.
|
|
393
|
+
|
|
394
|
+
delete:
|
|
395
|
+
description: Deletes a reply.
|
|
396
|
+
|
|
397
|
+
patch:
|
|
398
|
+
description: Updates an existing reply. This method supports patch semantics.
|
|
399
|
+
|
|
400
|
+
/realtime:
|
|
401
|
+
|
|
402
|
+
get:
|
|
403
|
+
description: Exports the contents of the Realtime API data model associated with this file as JSON.
|
|
404
|
+
|
|
405
|
+
put:
|
|
406
|
+
displayName: update
|
|
407
|
+
description: |
|
|
408
|
+
Overwrites the Realtime API data model associated with this file with the provided JSON data model.
|
|
409
|
+
|
|
410
|
+
This method supports an /upload URI and accepts uploaded media with the following characteristics:
|
|
411
|
+
|
|
412
|
+
- **Maximum file size**: 10MB
|
|
413
|
+
- **Accepted Media MIME** types: */*
|
|
414
|
+
|
|
415
|
+
/properties:
|
|
416
|
+
get:
|
|
417
|
+
description: "Lists a file's properties."
|
|
418
|
+
|
|
419
|
+
post:
|
|
420
|
+
description: Adds a property to a file.
|
|
421
|
+
|
|
422
|
+
/{propertyKey}:
|
|
423
|
+
uriParameters:
|
|
424
|
+
propertyKey:
|
|
425
|
+
type: string
|
|
426
|
+
description: The key of the property.
|
|
427
|
+
get:
|
|
428
|
+
|
|
429
|
+
put:
|
|
430
|
+
|
|
431
|
+
delete:
|
|
432
|
+
|
|
433
|
+
patch:
|
|
434
|
+
|
|
435
|
+
/trash:
|
|
436
|
+
delete:
|
|
437
|
+
description: "Permanently deletes all of the user's trashed files."
|
|
438
|
+
/{folderId}/children:
|
|
439
|
+
post:
|
|
440
|
+
description: Inserts a file into a folder.
|
|
441
|
+
|
|
442
|
+
get:
|
|
443
|
+
description: "Lists a folder's children. To list all children of the root folder, use the alias root for the folderId value."
|
|
444
|
+
|
|
445
|
+
/{childId}:
|
|
446
|
+
delete:
|
|
447
|
+
description: Removes a child from a folder.
|
|
448
|
+
get:
|
|
449
|
+
description: Gets a specific child reference.
|
|
450
|
+
/about:
|
|
451
|
+
displayName: About
|
|
452
|
+
get:
|
|
453
|
+
(clearanceLevel):
|
|
454
|
+
level: high
|
|
455
|
+
signature: 230-ghtwvfrs1itr
|
|
456
|
+
description: Gets the information about the current user along with Drive API settings.
|
|
457
|
+
|
|
458
|
+
/changes:
|
|
459
|
+
displayName: Changes
|
|
460
|
+
get:
|
|
461
|
+
|
|
462
|
+
/{changeId}:
|
|
463
|
+
uriParameters:
|
|
464
|
+
changeId:
|
|
465
|
+
type: string
|
|
466
|
+
description: The ID of the change.
|
|
467
|
+
get:
|
|
468
|
+
description: Gets a specific change.
|
|
469
|
+
|
|
470
|
+
/watch:
|
|
471
|
+
post:
|
|
472
|
+
queryParameters:
|
|
473
|
+
spaces:
|
|
474
|
+
type: string
|
|
475
|
+
required: false
|
|
476
|
+
description: |
|
|
477
|
+
A comma-separated list of spaces to query. Supported values are:
|
|
478
|
+
|
|
479
|
+
- **drive**
|
|
480
|
+
- **appDataFolder**
|
|
481
|
+
- **photos**
|
|
482
|
+
description: "Watch for all changes to a user's Drive."
|
|
483
|
+
headers:
|
|
484
|
+
x-test: string
|
|
485
|
+
get:
|
|
486
|
+
description: Dummy function
|
|
487
|
+
/permissionIds/{email}:
|
|
488
|
+
uriParameters:
|
|
489
|
+
email:
|
|
490
|
+
type: string
|
|
491
|
+
description: The email address for which to return a permission ID
|
|
492
|
+
get:
|
|
493
|
+
description: Returns the permission ID for an email address.
|
|
494
|
+
|
|
495
|
+
/apps:
|
|
496
|
+
displayName: Apps
|
|
497
|
+
get:
|
|
498
|
+
description: "Lists a user's installed apps."
|
|
499
|
+
/{appId}:
|
|
500
|
+
uriParameters:
|
|
501
|
+
appId:
|
|
502
|
+
type: string
|
|
503
|
+
description: The ID of the app.
|
|
504
|
+
get:
|
|
505
|
+
description: Gets a specific app.
|
|
506
|
+
/channels/stop:
|
|
507
|
+
post:
|
|
508
|
+
description: |
|
|
509
|
+
Stop watching for changes to a resource.
|
|
510
|
+
If successful, this method returns an empty response body.
|
|
511
|
+
/teamdrives:
|
|
512
|
+
displayName: Teamdrives
|
|
513
|
+
post:
|
|
514
|
+
displayName: insert
|
|
515
|
+
description: Creates a new Team Drive.
|
|
516
|
+
|
|
517
|
+
get:
|
|
518
|
+
displayName: list
|
|
519
|
+
description: Lists the user's Team Drives.
|
|
520
|
+
/{teamDriveId}:
|
|
521
|
+
uriParameters:
|
|
522
|
+
teamDriveId:
|
|
523
|
+
description: The ID of the Team Drive
|
|
524
|
+
delete:
|
|
525
|
+
description: |
|
|
526
|
+
Permanently deletes a Team Drive for which the user is an organizer. The Team Drive cannot contain any untrashed items.
|
|
527
|
+
get:
|
|
528
|
+
description: Gets a Team Drive's metadata by ID.
|
|
529
|
+
put:
|
|
530
|
+
description: Updates a Team Drive's metadata
|
|
531
|
+
/typeFromLibraryEndpoint:
|
|
532
|
+
post:
|
|
533
|
+
body:
|
|
534
|
+
type: myLib.TypeFromLibray
|
|
535
|
+
responses:
|
|
536
|
+
200:
|
|
537
|
+
/referenceId:
|
|
538
|
+
post:
|
|
539
|
+
body:
|
|
540
|
+
application/json:
|
|
541
|
+
type: SchemaPerson
|
|
542
|
+
/external-data-type:
|
|
543
|
+
post:
|
|
544
|
+
body:
|
|
545
|
+
application/json:
|
|
546
|
+
type: !include types/external-type.raml
|
|
547
|
+
/{groupId}/{assetId}/{version}:
|
|
548
|
+
uriParameters:
|
|
549
|
+
assetId: string
|
|
550
|
+
groupId: string
|
|
551
|
+
version: number
|
|
552
|
+
get:
|
|
553
|
+
/test-data-types:
|
|
554
|
+
post:
|
|
555
|
+
body:
|
|
556
|
+
application/json:
|
|
557
|
+
properties:
|
|
558
|
+
file:
|
|
559
|
+
displayName: A file
|
|
560
|
+
description: This is a file description
|
|
561
|
+
maxLength: 10
|
|
562
|
+
minLength: 1
|
|
563
|
+
required: true
|
|
564
|
+
# pattern: test
|
|
565
|
+
type: file
|
|
566
|
+
# multipleOf: 20
|
|
567
|
+
fileTypes:
|
|
568
|
+
- image/png
|
|
569
|
+
- image/jpeg
|
|
570
|
+
- image/jpg
|
|
571
|
+
- image/gif
|
|
572
|
+
responses:
|
|
573
|
+
200:
|
|
574
|
+
description: Any body
|
|
575
|
+
put:
|
|
576
|
+
body:
|
|
577
|
+
application/json:
|
|
578
|
+
properties:
|
|
579
|
+
homeAnimal: [HasHome | IsOnFarm, Dog | Cat | Parrot]
|
|
580
|
+
/parameters:
|
|
581
|
+
get:
|
|
582
|
+
displayName: All parameter types
|
|
583
|
+
headers:
|
|
584
|
+
Accept:
|
|
585
|
+
default: application/json
|
|
586
|
+
description: Selects the response's media type, when supported.
|
|
587
|
+
enum:
|
|
588
|
+
- application/json
|
|
589
|
+
- application/xml
|
|
590
|
+
- text/csv
|
|
591
|
+
required: false
|
|
592
|
+
x-required:
|
|
593
|
+
required: true
|
|
594
|
+
x-object-header:
|
|
595
|
+
type: object
|
|
596
|
+
properties:
|
|
597
|
+
key: string
|
|
598
|
+
value:
|
|
599
|
+
type: any
|
|
600
|
+
description: Any value
|
|
601
|
+
If-Modified-Since:
|
|
602
|
+
type: datetime
|
|
603
|
+
example: Sun, 28 Feb 2016 16:41:41 GMT
|
|
604
|
+
format: rfc2616 # this time it's required, otherwise, the example format is invalid
|
|
605
|
+
queryParameters:
|
|
606
|
+
unionable:
|
|
607
|
+
type: string | number
|
|
608
|
+
description: One of the two
|
|
609
|
+
example: 25
|
|
610
|
+
default: no
|
|
611
|
+
complexUnionable:
|
|
612
|
+
type: Feature | Product
|
|
613
|
+
description: Super confusing for a query param
|
|
614
|
+
examples:
|
|
615
|
+
One:
|
|
616
|
+
- id: test value
|
|
617
|
+
mixedUnionable:
|
|
618
|
+
type: Feature | string
|
|
619
|
+
description: At least one should work
|
|
620
|
+
combo:
|
|
621
|
+
type: string
|
|
622
|
+
default: Some value
|
|
623
|
+
description: A combo of all string properties
|
|
624
|
+
displayName: Combo (string)
|
|
625
|
+
enum:
|
|
626
|
+
- value 1
|
|
627
|
+
- value 2
|
|
628
|
+
- value 3
|
|
629
|
+
- value 4
|
|
630
|
+
- value 5
|
|
631
|
+
- value 6
|
|
632
|
+
- value 7
|
|
633
|
+
- value 8
|
|
634
|
+
- value 9
|
|
635
|
+
- value 10
|
|
636
|
+
examples:
|
|
637
|
+
Example 1: value 1
|
|
638
|
+
Example 2: value 2
|
|
639
|
+
maxLength: 100
|
|
640
|
+
minLength: 1
|
|
641
|
+
pattern: .*
|
|
642
|
+
required: true
|
|
643
|
+
comboNum:
|
|
644
|
+
type: number
|
|
645
|
+
default: 20
|
|
646
|
+
description: A combo with a number type
|
|
647
|
+
displayName: Combo (number)
|
|
648
|
+
enum:
|
|
649
|
+
- 5
|
|
650
|
+
- 10
|
|
651
|
+
- 20
|
|
652
|
+
- 40
|
|
653
|
+
- 50
|
|
654
|
+
- 75
|
|
655
|
+
- 100
|
|
656
|
+
examples:
|
|
657
|
+
Minimum: 5
|
|
658
|
+
Maximum: 100
|
|
659
|
+
minimum: 5
|
|
660
|
+
maximum: 100
|
|
661
|
+
multipleOf: 5
|
|
662
|
+
format: int64
|
|
663
|
+
birthday:
|
|
664
|
+
type: date-only
|
|
665
|
+
example: 2015-05-23
|
|
666
|
+
lunchtime:
|
|
667
|
+
type: time-only
|
|
668
|
+
example: 12:30:00
|
|
669
|
+
fireworks:
|
|
670
|
+
type: datetime-only
|
|
671
|
+
example: 2015-07-04T21:00:00
|
|
672
|
+
created:
|
|
673
|
+
type: datetime
|
|
674
|
+
example: 2016-02-28T16:41:41.090Z
|
|
675
|
+
format: rfc3339
|
|
676
|
+
userPicture:
|
|
677
|
+
type: file
|
|
678
|
+
fileTypes: ['image/jpeg', 'image/png']
|
|
679
|
+
maxLength: 307200
|
|
680
|
+
customFile:
|
|
681
|
+
type: file
|
|
682
|
+
fileTypes: ['*/*'] # any file type allowed
|
|
683
|
+
maxLength: 1048576
|
|
684
|
+
aBoolean:
|
|
685
|
+
type: boolean
|
|
686
|
+
description: This is a boolean value without a default value.
|
|
687
|
+
displayName: Boolean
|
|
688
|
+
aBooleanWithDefault:
|
|
689
|
+
type: boolean
|
|
690
|
+
default: true
|
|
691
|
+
displayName: Boolean with default
|
|
692
|
+
description: This is a boolean value with default value.
|
|
693
|
+
nillable:
|
|
694
|
+
type: nil
|
|
695
|
+
description: This can be null
|
|
696
|
+
nillableUnion:
|
|
697
|
+
type: string | nil
|
|
698
|
+
/query-params:
|
|
699
|
+
/bool:
|
|
700
|
+
get:
|
|
701
|
+
queryParameters:
|
|
702
|
+
aBoolean:
|
|
703
|
+
type: boolean
|
|
704
|
+
description: This is a boolean value without a default value.
|
|
705
|
+
displayName: Boolean
|
|
706
|
+
aBooleanWithDefault:
|
|
707
|
+
type: boolean
|
|
708
|
+
default: true
|
|
709
|
+
displayName: Boolean with default
|
|
710
|
+
description: This is a boolean value with default value.
|
|
711
|
+
nillableBoolean:
|
|
712
|
+
type: boolean | nil
|
|
713
|
+
displayName: Boolean with nil
|
|
714
|
+
description: This is a boolean value with a nil union value.
|
|
715
|
+
stringBoolean:
|
|
716
|
+
type: boolean | string
|
|
717
|
+
displayName: Boolean with string
|
|
718
|
+
description: This is a boolean value with a string union value.
|
|
719
|
+
/string:
|
|
720
|
+
get:
|
|
721
|
+
queryParameters:
|
|
722
|
+
string:
|
|
723
|
+
type: string
|
|
724
|
+
description: Simple string
|
|
725
|
+
enum:
|
|
726
|
+
type: string
|
|
727
|
+
enum: [development, staging, qa, production]
|
|
728
|
+
description: Enum string
|
|
729
|
+
minMaxLnegth:
|
|
730
|
+
type: string
|
|
731
|
+
minLength: 5
|
|
732
|
+
maxLength: 15
|
|
733
|
+
description: Min 5 max 15
|
|
734
|
+
patternLettersOnly:
|
|
735
|
+
type: string
|
|
736
|
+
pattern: '[a-zA-Z]*'
|
|
737
|
+
description: Letters only pattern
|
|
738
|
+
patternNumbersOnly:
|
|
739
|
+
type: string
|
|
740
|
+
pattern: '[0-9]*'
|
|
741
|
+
description: Number only pattern
|
|
742
|
+
displayName:
|
|
743
|
+
type: string
|
|
744
|
+
displayName: String 6
|
|
745
|
+
description: With display name
|
|
746
|
+
notRequired:
|
|
747
|
+
type: string
|
|
748
|
+
required: false
|
|
749
|
+
description: Optional value
|
|
750
|
+
withDefault:
|
|
751
|
+
type: string
|
|
752
|
+
default: This is a default
|
|
753
|
+
description: Default value
|
|
754
|
+
withDefaultNotRequired:
|
|
755
|
+
type: string
|
|
756
|
+
default: This is a default
|
|
757
|
+
required: false
|
|
758
|
+
description: Default value and not required
|
|
759
|
+
stringUnionNumber:
|
|
760
|
+
type: string | number
|
|
761
|
+
description: Either string or number
|
|
762
|
+
withExamples:
|
|
763
|
+
type: string
|
|
764
|
+
examples:
|
|
765
|
+
Word 1: Option 1
|
|
766
|
+
Word 2: Option 2
|
|
767
|
+
Word 3: 123456
|
|
768
|
+
description: String with examples.
|
|
769
|
+
anArray:
|
|
770
|
+
type: string[]
|
|
771
|
+
description: Array of strings.
|
|
772
|
+
/dates:
|
|
773
|
+
get:
|
|
774
|
+
queryParameters:
|
|
775
|
+
dateOnly:
|
|
776
|
+
type: date-only
|
|
777
|
+
description: Date only, like "2015-05-23"
|
|
778
|
+
timeOnly:
|
|
779
|
+
type: time-only
|
|
780
|
+
description: Time only, like "12:30:00"
|
|
781
|
+
dateTimeOnly:
|
|
782
|
+
type: datetime-only
|
|
783
|
+
description: Date and time only, like "2015-07-04T21:00:00"
|
|
784
|
+
rfc3339:
|
|
785
|
+
type: datetime
|
|
786
|
+
format: rfc3339
|
|
787
|
+
description: Date and time, rfc3339 format, like "2016-02-28T16:41:41.090Z"
|
|
788
|
+
rfc2616:
|
|
789
|
+
type: datetime
|
|
790
|
+
format: rfc2616
|
|
791
|
+
description: Date and time, rfc2616 format, like "Sun, 28 Feb 2016 16:41:41 GMT"
|
|
792
|
+
dateTimeNoFormat:
|
|
793
|
+
type: datetime
|
|
794
|
+
description: Date and time, assumed rfc3339 format, like "2016-02-28T16:41:41.090Z"
|
|
795
|
+
dateOnlyDefaultValue:
|
|
796
|
+
type: date-only
|
|
797
|
+
default: 2015-05-23
|
|
798
|
+
description: Date only, with a default value.
|
|
799
|
+
timeOnlyDefaultValue:
|
|
800
|
+
type: time-only
|
|
801
|
+
default: 12:30:00
|
|
802
|
+
description: Time only, with a default value.
|
|
803
|
+
rfc3339DefaultValue:
|
|
804
|
+
type: datetime
|
|
805
|
+
format: rfc3339
|
|
806
|
+
default: 2016-02-28T16:41:41.090Z
|
|
807
|
+
description: Date and time, rfc3339 format, default value
|
|
808
|
+
rfc2616DefaultValue:
|
|
809
|
+
type: datetime
|
|
810
|
+
format: rfc2616
|
|
811
|
+
default: Sun, 28 Feb 2016 16:41:41 GMT
|
|
812
|
+
description: Date and time, rfc2616 format, default value
|
|
813
|
+
dateTimeDefaultValue:
|
|
814
|
+
type: datetime
|
|
815
|
+
default: 2016-02-28T16:41:41.090Z
|
|
816
|
+
description: Date and time, with a default value.
|
|
817
|
+
dateTimeUnion:
|
|
818
|
+
type: datetime | string
|
|
819
|
+
description: Date and time union with string.
|
|
820
|
+
dateTimeNil:
|
|
821
|
+
type: datetime | nil
|
|
822
|
+
description: Required but nillable.
|
|
823
|
+
dateArray:
|
|
824
|
+
type: datetime[]
|
|
825
|
+
description: A list of datetime
|
|
826
|
+
/numbers:
|
|
827
|
+
get:
|
|
828
|
+
queryParameters:
|
|
829
|
+
simple: number
|
|
830
|
+
intFormat:
|
|
831
|
+
type: number
|
|
832
|
+
format: int
|
|
833
|
+
description: int format number
|
|
834
|
+
int8Format:
|
|
835
|
+
type: number
|
|
836
|
+
format: int8
|
|
837
|
+
description: int8 format number
|
|
838
|
+
int16Format:
|
|
839
|
+
type: number
|
|
840
|
+
format: int16
|
|
841
|
+
description: int16 format number
|
|
842
|
+
int32Format:
|
|
843
|
+
type: number
|
|
844
|
+
format: int32
|
|
845
|
+
description: int32 format number
|
|
846
|
+
int64Format:
|
|
847
|
+
type: number
|
|
848
|
+
format: int64
|
|
849
|
+
description: int64 format number
|
|
850
|
+
longFormat:
|
|
851
|
+
type: number
|
|
852
|
+
format: long
|
|
853
|
+
description: long format number
|
|
854
|
+
floatFormat:
|
|
855
|
+
type: number
|
|
856
|
+
format: float
|
|
857
|
+
description: float format number
|
|
858
|
+
doubleFormat:
|
|
859
|
+
type: number
|
|
860
|
+
format: double
|
|
861
|
+
description: double format number
|
|
862
|
+
floatWithMultiple:
|
|
863
|
+
type: number
|
|
864
|
+
format: float
|
|
865
|
+
multipleOf: 1.1
|
|
866
|
+
description: float format number with multiple of.
|
|
867
|
+
integerFormat:
|
|
868
|
+
type: integer
|
|
869
|
+
description: An integer
|
|
870
|
+
integerMinMax:
|
|
871
|
+
type: integer
|
|
872
|
+
minimum: 0
|
|
873
|
+
maximum: 100
|
|
874
|
+
multipleOf: 5
|
|
875
|
+
description: Min, max, and multiple of.
|
|
876
|
+
integerUnionString:
|
|
877
|
+
type: integer | string
|
|
878
|
+
description: Union with string
|
|
879
|
+
integerUnionNil:
|
|
880
|
+
type: integer | nil
|
|
881
|
+
description: Required but nillable
|
|
882
|
+
notRequired:
|
|
883
|
+
type: integer
|
|
884
|
+
required: false
|
|
885
|
+
description: Required but nillable
|
|
886
|
+
integerDefault:
|
|
887
|
+
type: integer
|
|
888
|
+
default: 12
|
|
889
|
+
description: Integer with default "12"
|
|
890
|
+
floatDefault:
|
|
891
|
+
type: number
|
|
892
|
+
format: float
|
|
893
|
+
multipleOf: 1.1
|
|
894
|
+
default: 2.2
|
|
895
|
+
description: float with default if "2.2"
|
|
896
|
+
integerArray:
|
|
897
|
+
type: integer[]
|
|
898
|
+
description: A list of integers
|
|
899
|
+
/queryString:
|
|
900
|
+
get:
|
|
901
|
+
queryString:
|
|
902
|
+
type: [paging, lat-long | loc ]
|
|
903
|
+
examples:
|
|
904
|
+
first:
|
|
905
|
+
value:
|
|
906
|
+
start: 2
|
|
907
|
+
lat: 12
|
|
908
|
+
long: 13
|
|
909
|
+
second:
|
|
910
|
+
value:
|
|
911
|
+
start: 2
|
|
912
|
+
page-size: 20
|
|
913
|
+
location: 1,2
|
|
914
|
+
third: # not valid
|
|
915
|
+
value:
|
|
916
|
+
lat: 12
|
|
917
|
+
location: 2
|
|
918
|
+
strict: false # because it's not valid
|
|
919
|
+
/traits:
|
|
920
|
+
get:
|
|
921
|
+
is: [Paginated: {resourceType: Person}]
|
|
922
|
+
headers:
|
|
923
|
+
x-people-op-id:
|
|
924
|
+
(annotationTest):
|
|
925
|
+
type: string
|
|
926
|
+
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[4][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
|
|
927
|
+
description: People ops ID. It is UUID v4 string
|
|
928
|
+
example: 9719fa6f-c666-48e0-a191-290890760b30
|
|
929
|
+
/annotations:
|
|
930
|
+
(clearanceLevel):
|
|
931
|
+
level: high
|
|
932
|
+
signature: 230-ghtwvfrs1itr
|
|
933
|
+
get:
|
|
934
|
+
(deprecated): This method is deprecated and will be removed.
|
|
935
|
+
responses:
|
|
936
|
+
200:
|
|
937
|
+
description:
|
|
938
|
+
/xml:
|
|
939
|
+
displayName: People
|
|
940
|
+
description: The people API used to access data about the people.
|
|
941
|
+
post:
|
|
942
|
+
displayName: Create a person
|
|
943
|
+
description: Use this method to add new person
|
|
944
|
+
body:
|
|
945
|
+
application/xml:
|
|
946
|
+
type: !include schemas/person.xsd
|
|
947
|
+
example: !include examples/person.xml
|
|
948
|
+
/json:
|
|
949
|
+
post:
|
|
950
|
+
body:
|
|
951
|
+
application/json:
|
|
952
|
+
type: !include schemas/person.json
|
|
953
|
+
example: !include examples/person.json
|
|
954
|
+
/examples:
|
|
955
|
+
get:
|
|
956
|
+
displayName: Included example
|
|
957
|
+
responses:
|
|
958
|
+
200:
|
|
959
|
+
body:
|
|
960
|
+
application/json:
|
|
961
|
+
type: object
|
|
962
|
+
example: !include examples/person.raml
|
|
963
|
+
/body-tracking:
|
|
964
|
+
get:
|
|
965
|
+
displayName: Common RAML example
|
|
966
|
+
description: |
|
|
967
|
+
The payload has the same example for both mime types coming from RAML
|
|
968
|
+
declaration.
|
|
969
|
+
body:
|
|
970
|
+
application/json:
|
|
971
|
+
type: AppPerson
|
|
972
|
+
example: !include examples/person.raml
|
|
973
|
+
application/xml:
|
|
974
|
+
type: AppPerson
|
|
975
|
+
example: !include examples/person.raml
|
|
976
|
+
put:
|
|
977
|
+
displayName: Different examples
|
|
978
|
+
description: |
|
|
979
|
+
The payload has different examples for both mime types. Both comming for the corresponding
|
|
980
|
+
schema.
|
|
981
|
+
body:
|
|
982
|
+
application/json:
|
|
983
|
+
type: AppPerson
|
|
984
|
+
example: !include examples/person.json
|
|
985
|
+
application/xml:
|
|
986
|
+
type: AppPerson
|
|
987
|
+
example: !include examples/person.xml
|
|
988
|
+
post:
|
|
989
|
+
displayName: Reused examples
|
|
990
|
+
description: |
|
|
991
|
+
This payload is exactly the same as `put` payload.
|
|
992
|
+
This should render how the examples behave when reused.
|
|
993
|
+
body:
|
|
994
|
+
application/json:
|
|
995
|
+
type: AppPerson
|
|
996
|
+
example: !include examples/person.json
|
|
997
|
+
application/xml:
|
|
998
|
+
type: AppPerson
|
|
999
|
+
example: !include examples/person.xml
|
|
1000
|
+
delete:
|
|
1001
|
+
description: |
|
|
1002
|
+
This payload has only one mime.
|
|
1003
|
+
body:
|
|
1004
|
+
application/json:
|
|
1005
|
+
type: AppPerson
|
|
1006
|
+
example: !include examples/person.json
|
|
1007
|
+
patch:
|
|
1008
|
+
displayName: No example
|
|
1009
|
+
description: |
|
|
1010
|
+
This payload has no example at all.
|
|
1011
|
+
body:
|
|
1012
|
+
application/json:
|
|
1013
|
+
type: AppPerson
|
|
1014
|
+
/not-shared:
|
|
1015
|
+
post:
|
|
1016
|
+
body:
|
|
1017
|
+
application/json:
|
|
1018
|
+
type: object
|
|
1019
|
+
properties:
|
|
1020
|
+
id: number
|
|
1021
|
+
name: string
|
|
1022
|
+
example:
|
|
1023
|
+
id: 1234567890
|
|
1024
|
+
name: Pawel Uchida-Psztyc
|