@api-client/core 0.8.1 → 0.8.3
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 +3 -3
- package/build/browser.js.map +1 -1
- package/build/index.d.ts +3 -3
- package/build/index.js.map +1 -1
- package/build/oauth-popup.html +29 -0
- 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/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-483/APIC-483.raml +16 -0
- package/data/apis/APIC-483/example/list-of-bank-succ.json +32 -0
- package/data/apis/APIC-483/schema/response-retrieve-list-bank.json +68 -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/arc-demo-api/arc-demo-api.raml +468 -0
- package/data/apis/arc-demo-api/examples/e400.xml +4 -0
- package/data/apis/arc-demo-api/examples/e401.xml +4 -0
- package/data/apis/arc-demo-api/examples/e404.xml +4 -0
- package/data/apis/arc-demo-api/examples/image.xml +5 -0
- package/data/apis/arc-demo-api/examples/messages-example.json +22 -0
- package/data/apis/arc-demo-api/examples/messages-sent-example.json +15 -0
- package/data/apis/arc-demo-api/examples/person.json +14 -0
- package/data/apis/arc-demo-api/examples/person.url.encoded +1 -0
- package/data/apis/arc-demo-api/examples/person.xml +14 -0
- package/data/apis/arc-demo-api/examples/product.xml +9 -0
- package/data/apis/arc-demo-api/library.raml +36 -0
- package/data/apis/arc-demo-api/resourceTypes/app-person.raml +49 -0
- package/data/apis/arc-demo-api/resourceTypes/example-types.raml +45 -0
- package/data/apis/arc-demo-api/resourceTypes/image.raml +23 -0
- package/data/apis/arc-demo-api/resourceTypes/message-sent-type.raml +23 -0
- package/data/apis/arc-demo-api/resourceTypes/message-type.raml +33 -0
- package/data/apis/arc-demo-api/resourceTypes/product.raml +52 -0
- package/data/apis/arc-demo-api/resourceTypes/resource.raml +11 -0
- package/data/apis/arc-demo-api/schemas/error-response.xsd +11 -0
- package/data/apis/arc-demo-api/schemas/image.xsd +11 -0
- package/data/apis/arc-demo-api/schemas/person.json +104 -0
- package/data/apis/arc-demo-api/schemas/person.xsd +26 -0
- package/data/apis/arc-demo-api/schemas/product.xsd +17 -0
- package/data/apis/arc-demo-api/securitySchemes/basic.raml +5 -0
- package/data/apis/arc-demo-api/securitySchemes/oauth_2_0.raml +29 -0
- package/data/apis/arc-demo-api/securitySchemes/x-custom.raml +26 -0
- package/data/apis/arc-demo-api/traits/adminable.raml +23 -0
- package/data/apis/arc-demo-api/traits/pagination.raml +83 -0
- package/data/apis/arc-demo-api/traits/rate-limited.raml +9 -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/oas-3-api/oas-3-api.yaml +356 -0
- package/data/apis/petstore/petstore.yaml +954 -0
- package/data/apis/schema-api/schema-api.raml +13 -1
- package/data/apis/secured-api/oauth-2-custom-settings.raml +143 -0
- package/data/apis/secured-api/oauth2-header-delivery.raml +13 -0
- package/data/apis/secured-api/oauth2-no-delivery.raml +8 -0
- package/data/apis/secured-api/oauth2-no-grants.raml +12 -0
- package/data/apis/secured-api/oauth2-pkce.raml +13 -0
- package/data/apis/secured-api/oauth2-query-delivery.raml +13 -0
- package/data/apis/secured-api/oauth_1_0.raml +8 -0
- package/data/apis/secured-api/oauth_1_0_no-settings.raml +3 -0
- package/data/apis/secured-api/oauth_1_0_no-signature.raml +7 -0
- package/data/apis/secured-api/oauth_1_0_signature.raml +8 -0
- package/data/apis/secured-api/passthrough-querystring.raml +16 -0
- package/data/apis/secured-api/passthrough.raml +24 -0
- package/data/apis/secured-api/secured-api.raml +231 -0
- package/data/apis/secured-api/x-custom.raml +33 -0
- package/data/apis/secured-api/x-other.raml +29 -0
- package/data/apis/secured-api/x-query-string.raml +16 -0
- 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-483.json +3067 -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/arc-demo-api.json +52694 -0
- package/data/models/example-generator-api.json +44978 -0
- package/data/models/oas-3-api.json +10464 -0
- package/data/models/petstore.json +27277 -0
- package/data/models/schema-api.json +436 -428
- package/data/models/secured-api.json +19067 -0
- package/data/models/tracked-to-linked.json +1790 -0
- package/package.json +6 -5
- 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/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,9 @@
|
|
|
1
|
+
addressType: 'REGISTERED-OFFICE-ADDRESS'
|
|
2
|
+
streetName: 'UITBREIDINGSTRAAT'
|
|
3
|
+
houseNumber: '84'
|
|
4
|
+
houseNumberAddition: '/1'
|
|
5
|
+
postalCode: '2600'
|
|
6
|
+
city: 'BERCHEM (ANTWERPEN)'
|
|
7
|
+
country: 'Belgium'
|
|
8
|
+
countryCode: 'BE'
|
|
9
|
+
fullFormatedAddress: "UITBREIDINGSTRAAT 84 /1, 2600 BERCHEM (ANTWERPEN), BELIUM"
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
title: API demo
|
|
3
|
+
version: v1
|
|
4
|
+
baseUri: http://api.domain.com/
|
|
5
|
+
|
|
6
|
+
types:
|
|
7
|
+
ScalarType: string
|
|
8
|
+
ScalarArray: string[]
|
|
9
|
+
ArrayType:
|
|
10
|
+
type: array
|
|
11
|
+
items: Image
|
|
12
|
+
UnionType: Image | Imgs
|
|
13
|
+
ScalarWithExample:
|
|
14
|
+
type: number
|
|
15
|
+
example: 5
|
|
16
|
+
ScalarArrayWithExample:
|
|
17
|
+
type: number[]
|
|
18
|
+
example: [1, 5]
|
|
19
|
+
SimpleInlineExample:
|
|
20
|
+
type: object
|
|
21
|
+
properties:
|
|
22
|
+
testProperty: boolean
|
|
23
|
+
example:
|
|
24
|
+
testProperty: true
|
|
25
|
+
Image:
|
|
26
|
+
type: object
|
|
27
|
+
properties:
|
|
28
|
+
url: string
|
|
29
|
+
thumb: string
|
|
30
|
+
Imgs:
|
|
31
|
+
properties:
|
|
32
|
+
something: string
|
|
33
|
+
images:
|
|
34
|
+
type: Image[]
|
|
35
|
+
xml:
|
|
36
|
+
wrapped: true
|
|
37
|
+
Person:
|
|
38
|
+
properties:
|
|
39
|
+
error?:
|
|
40
|
+
type: boolean
|
|
41
|
+
xml:
|
|
42
|
+
attribute: true
|
|
43
|
+
id:
|
|
44
|
+
type: string | number
|
|
45
|
+
name: string
|
|
46
|
+
birthday: date-only
|
|
47
|
+
gender:
|
|
48
|
+
type: string
|
|
49
|
+
examples:
|
|
50
|
+
Male: male
|
|
51
|
+
Female: female
|
|
52
|
+
url: string
|
|
53
|
+
tagline: string
|
|
54
|
+
language:
|
|
55
|
+
type: string
|
|
56
|
+
default: PL
|
|
57
|
+
etag:
|
|
58
|
+
type: string
|
|
59
|
+
example: etag example
|
|
60
|
+
image:
|
|
61
|
+
type: object
|
|
62
|
+
properties:
|
|
63
|
+
url: string
|
|
64
|
+
thumb: string
|
|
65
|
+
opt?: Image | string
|
|
66
|
+
example:
|
|
67
|
+
error: false
|
|
68
|
+
id: 1234
|
|
69
|
+
name: Pawel Psztyc
|
|
70
|
+
birthday: 20-10-1983
|
|
71
|
+
tagline: Test example
|
|
72
|
+
url: https://domain.com
|
|
73
|
+
language: PL
|
|
74
|
+
etag: test
|
|
75
|
+
image:
|
|
76
|
+
url: https://image.com
|
|
77
|
+
thumb: https://image.com/thumb
|
|
78
|
+
JsonExampleInclude:
|
|
79
|
+
type: Person
|
|
80
|
+
example: !include example.json
|
|
81
|
+
XmlExampleInclude:
|
|
82
|
+
type: Person
|
|
83
|
+
example: !include example.xml
|
|
84
|
+
PropertyExamples:
|
|
85
|
+
properties:
|
|
86
|
+
xtra:
|
|
87
|
+
type: string
|
|
88
|
+
xml:
|
|
89
|
+
attribute: true
|
|
90
|
+
firstName:
|
|
91
|
+
type: string
|
|
92
|
+
example: Pawel
|
|
93
|
+
lastName:
|
|
94
|
+
type: string
|
|
95
|
+
example: Psztyc
|
|
96
|
+
address: Address
|
|
97
|
+
num: number
|
|
98
|
+
int: integer
|
|
99
|
+
bool: boolean
|
|
100
|
+
defVal:
|
|
101
|
+
type: integer
|
|
102
|
+
default: 10
|
|
103
|
+
example: 1
|
|
104
|
+
Address:
|
|
105
|
+
properties:
|
|
106
|
+
street: string
|
|
107
|
+
zip:
|
|
108
|
+
type: string
|
|
109
|
+
example: "94100"
|
|
110
|
+
default: "00000"
|
|
111
|
+
house:
|
|
112
|
+
type: number
|
|
113
|
+
example: 1
|
|
114
|
+
TypeExamples:
|
|
115
|
+
properties:
|
|
116
|
+
firstName: string
|
|
117
|
+
lastName: string
|
|
118
|
+
example:
|
|
119
|
+
firstName: Pawel
|
|
120
|
+
lastName: Psztyc
|
|
121
|
+
ArrayTypeWithExample:
|
|
122
|
+
type: array
|
|
123
|
+
items: Image
|
|
124
|
+
example: [{"url": "url 1", "thumb": "thumb 1"}]
|
|
125
|
+
ArrayWithoutItems:
|
|
126
|
+
type: array
|
|
127
|
+
displayName: Incomplete array
|
|
128
|
+
Employee:
|
|
129
|
+
type: object
|
|
130
|
+
properties:
|
|
131
|
+
firstName: string
|
|
132
|
+
lastName: string
|
|
133
|
+
position: string
|
|
134
|
+
deskNumber: string
|
|
135
|
+
DataTypesExample:
|
|
136
|
+
type: object
|
|
137
|
+
properties:
|
|
138
|
+
typeString:
|
|
139
|
+
type: string
|
|
140
|
+
example: String example
|
|
141
|
+
typeNumber:
|
|
142
|
+
type: number
|
|
143
|
+
example: 123456
|
|
144
|
+
typeInt:
|
|
145
|
+
type: integer
|
|
146
|
+
example: 1234546
|
|
147
|
+
typeDecimal:
|
|
148
|
+
type: number
|
|
149
|
+
multipleOf: 0.01
|
|
150
|
+
example: 10.67
|
|
151
|
+
typeBool:
|
|
152
|
+
type: boolean
|
|
153
|
+
example: true
|
|
154
|
+
typeNull:
|
|
155
|
+
type: nil
|
|
156
|
+
example: null
|
|
157
|
+
typeNegativeInt:
|
|
158
|
+
type: integer
|
|
159
|
+
example: -12
|
|
160
|
+
typeNumberFormatInt64:
|
|
161
|
+
type: number
|
|
162
|
+
minimum: 3
|
|
163
|
+
maximum: 5
|
|
164
|
+
format: int64
|
|
165
|
+
multipleOf: 4
|
|
166
|
+
example: 8
|
|
167
|
+
typeNumFormatInt32:
|
|
168
|
+
type: number
|
|
169
|
+
format: int32
|
|
170
|
+
example: 109298
|
|
171
|
+
typeNumFormatInt:
|
|
172
|
+
type: number
|
|
173
|
+
format: int
|
|
174
|
+
example: 11
|
|
175
|
+
typeNumFormatLong:
|
|
176
|
+
type: number
|
|
177
|
+
format: long
|
|
178
|
+
example: 123456789
|
|
179
|
+
typeNumFormatFloat:
|
|
180
|
+
type: number
|
|
181
|
+
format: float
|
|
182
|
+
example: 1234567.89
|
|
183
|
+
typeNumFormatDouble:
|
|
184
|
+
type: number
|
|
185
|
+
format: double
|
|
186
|
+
example: 1234.56789
|
|
187
|
+
typeNumFormatInt8:
|
|
188
|
+
type: number
|
|
189
|
+
format: int8
|
|
190
|
+
example: 1
|
|
191
|
+
typeNumFormatInt16:
|
|
192
|
+
type: number
|
|
193
|
+
format: int16
|
|
194
|
+
example: 2
|
|
195
|
+
typeIntFormatInt8:
|
|
196
|
+
type: integer
|
|
197
|
+
minimum: 3
|
|
198
|
+
maximum: 5
|
|
199
|
+
format: int8
|
|
200
|
+
multipleOf: 1
|
|
201
|
+
example: 12
|
|
202
|
+
|
|
203
|
+
/IncludedInType:
|
|
204
|
+
post:
|
|
205
|
+
body:
|
|
206
|
+
application/json:
|
|
207
|
+
type: Person
|
|
208
|
+
application/xml:
|
|
209
|
+
type: Person
|
|
210
|
+
/IncludedInline:
|
|
211
|
+
post:
|
|
212
|
+
body:
|
|
213
|
+
application/json:
|
|
214
|
+
type: Person
|
|
215
|
+
example:
|
|
216
|
+
error: false
|
|
217
|
+
id: 1234
|
|
218
|
+
name: Inline person
|
|
219
|
+
birthday: 01-01-1990
|
|
220
|
+
tagline: Test example
|
|
221
|
+
url: https://domain.com
|
|
222
|
+
language: PL
|
|
223
|
+
etag: test
|
|
224
|
+
image:
|
|
225
|
+
url: https://image.com
|
|
226
|
+
thumb: https://image.com/thumb
|
|
227
|
+
application/xml:
|
|
228
|
+
type: !include example.xsd
|
|
229
|
+
example: !include example.xml
|
|
230
|
+
/IncludedInlineJson:
|
|
231
|
+
post:
|
|
232
|
+
body:
|
|
233
|
+
application/json:
|
|
234
|
+
type: !include user.raml
|
|
235
|
+
example: !include user.json
|
|
236
|
+
/typeExamples:
|
|
237
|
+
post:
|
|
238
|
+
body:
|
|
239
|
+
application/json:
|
|
240
|
+
type: TypeExamples
|
|
241
|
+
application/xml:
|
|
242
|
+
type: TypeExamples
|
|
243
|
+
/propertyExamples:
|
|
244
|
+
post:
|
|
245
|
+
body:
|
|
246
|
+
application/json:
|
|
247
|
+
type: PropertyExamples
|
|
248
|
+
application/xml:
|
|
249
|
+
type: PropertyExamples
|
|
250
|
+
/arrayTypeExample:
|
|
251
|
+
post:
|
|
252
|
+
body:
|
|
253
|
+
application/json:
|
|
254
|
+
type: TypeExamples[]
|
|
255
|
+
/ArrayType:
|
|
256
|
+
post:
|
|
257
|
+
body:
|
|
258
|
+
application/json:
|
|
259
|
+
type: ArrayType
|
|
260
|
+
application/xml:
|
|
261
|
+
type: ArrayType
|
|
262
|
+
/arrayPropertyExamples:
|
|
263
|
+
post:
|
|
264
|
+
body:
|
|
265
|
+
application/json:
|
|
266
|
+
type: PropertyExamples[]
|
|
267
|
+
application/xml:
|
|
268
|
+
type: PropertyExamples[]
|
|
269
|
+
/arrayPropertyGeneratedExamples:
|
|
270
|
+
post:
|
|
271
|
+
body:
|
|
272
|
+
application/json:
|
|
273
|
+
type: array
|
|
274
|
+
items:
|
|
275
|
+
properties:
|
|
276
|
+
test: boolean
|
|
277
|
+
other: string
|
|
278
|
+
application/xml:
|
|
279
|
+
type: array
|
|
280
|
+
items:
|
|
281
|
+
properties:
|
|
282
|
+
test: boolean
|
|
283
|
+
other: string
|
|
284
|
+
/wrappedXml:
|
|
285
|
+
post:
|
|
286
|
+
body:
|
|
287
|
+
application/xml:
|
|
288
|
+
type: Imgs
|
|
289
|
+
/inline-property-example:
|
|
290
|
+
post:
|
|
291
|
+
body:
|
|
292
|
+
application/json:
|
|
293
|
+
type: object
|
|
294
|
+
properties:
|
|
295
|
+
limit: number
|
|
296
|
+
items:
|
|
297
|
+
type: string[]
|
|
298
|
+
example: [test, other]
|
|
299
|
+
application/xml:
|
|
300
|
+
type: object
|
|
301
|
+
properties:
|
|
302
|
+
limit: number
|
|
303
|
+
items:
|
|
304
|
+
type: string[]
|
|
305
|
+
example: [test, other]
|
|
306
|
+
/union:
|
|
307
|
+
post:
|
|
308
|
+
body:
|
|
309
|
+
application/json:
|
|
310
|
+
type: Person | PropertyExamples
|
|
311
|
+
application/xml:
|
|
312
|
+
type: Person | PropertyExamples
|
|
313
|
+
/scalar:
|
|
314
|
+
post:
|
|
315
|
+
body:
|
|
316
|
+
application/json:
|
|
317
|
+
type: integer
|
|
318
|
+
/scalarWithExample:
|
|
319
|
+
post:
|
|
320
|
+
body:
|
|
321
|
+
application/json:
|
|
322
|
+
type: integer
|
|
323
|
+
example: 1
|
|
324
|
+
/arrayScalar:
|
|
325
|
+
post:
|
|
326
|
+
body:
|
|
327
|
+
application/json:
|
|
328
|
+
type: array
|
|
329
|
+
items: [number]
|
|
330
|
+
/arrayScalarWithExample:
|
|
331
|
+
post:
|
|
332
|
+
body:
|
|
333
|
+
application/json:
|
|
334
|
+
type: array
|
|
335
|
+
items: [number]
|
|
336
|
+
example: [1, 2, 3]
|
|
337
|
+
/user-raml-example:
|
|
338
|
+
post:
|
|
339
|
+
body:
|
|
340
|
+
application/json:
|
|
341
|
+
type: !include user-raml-example.raml
|
|
342
|
+
examples:
|
|
343
|
+
User 3:
|
|
344
|
+
id: uid3
|
|
345
|
+
username: ppsztyc
|
|
346
|
+
firstName: Pawel
|
|
347
|
+
lastName: Psztyc
|
|
348
|
+
profilePhoto: https://img/domain.com/ppsztyc
|
|
349
|
+
email: ppsztyc@domain.com
|
|
350
|
+
User 4:
|
|
351
|
+
id: uid4
|
|
352
|
+
username: jdoe
|
|
353
|
+
firstName: John
|
|
354
|
+
lastName: Does
|
|
355
|
+
profilePhoto: https://img/domain.com/jdoe
|
|
356
|
+
email: jdoe@domain.com
|
|
357
|
+
application/xml:
|
|
358
|
+
type: !include user-raml-example.raml
|
|
359
|
+
/user-json-example:
|
|
360
|
+
post:
|
|
361
|
+
body:
|
|
362
|
+
application/json:
|
|
363
|
+
type: !include user-json-example.raml
|
|
364
|
+
/users-raml-example:
|
|
365
|
+
post:
|
|
366
|
+
body:
|
|
367
|
+
application/json:
|
|
368
|
+
type: !include users-raml-example.raml
|
|
369
|
+
application/xml:
|
|
370
|
+
type: !include users-raml-example.raml
|
|
371
|
+
/users-json-example:
|
|
372
|
+
post:
|
|
373
|
+
body:
|
|
374
|
+
application/json:
|
|
375
|
+
type: !include users-json-example.raml
|
|
376
|
+
/named-example:
|
|
377
|
+
post:
|
|
378
|
+
body:
|
|
379
|
+
application/json:
|
|
380
|
+
examples: !include named-example.raml
|
|
381
|
+
application/xml:
|
|
382
|
+
examples: !include named-example.raml
|
|
383
|
+
/named-linked-example:
|
|
384
|
+
post:
|
|
385
|
+
body:
|
|
386
|
+
application/json:
|
|
387
|
+
examples: !include named-example-with-link.raml
|
|
388
|
+
application/xml:
|
|
389
|
+
examples: !include named-example-with-link.raml
|
|
390
|
+
/employees:
|
|
391
|
+
get:
|
|
392
|
+
body:
|
|
393
|
+
application/json:
|
|
394
|
+
type: Employee[]
|
|
395
|
+
examples: !include examples/employees.raml
|
|
396
|
+
application/xml:
|
|
397
|
+
type: Employee[]
|
|
398
|
+
examples: !include examples/employees.raml
|
|
399
|
+
post:
|
|
400
|
+
body:
|
|
401
|
+
application/json:
|
|
402
|
+
type: Employee
|
|
403
|
+
examples: !include examples/employee.raml
|
|
404
|
+
application/xml:
|
|
405
|
+
type: Employee
|
|
406
|
+
examples: !include examples/employee.raml
|
|
407
|
+
delete:
|
|
408
|
+
body:
|
|
409
|
+
application/json:
|
|
410
|
+
type: Employee
|
|
411
|
+
examples: !include examples/employee.raml
|
|
412
|
+
head:
|
|
413
|
+
body:
|
|
414
|
+
application/json:
|
|
415
|
+
type: Employee
|
|
416
|
+
examples: !include examples/employee.raml
|
|
417
|
+
/data-types:
|
|
418
|
+
post:
|
|
419
|
+
body:
|
|
420
|
+
application/json:
|
|
421
|
+
type: DataTypesExample
|
|
422
|
+
application/xml:
|
|
423
|
+
type: DataTypesExample
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "R34fg663H9KW9MMSKISI",
|
|
3
|
+
"name": "Pawel Psztyc",
|
|
4
|
+
"birthday": "1983-10-20",
|
|
5
|
+
"gender": "male",
|
|
6
|
+
"url": "https://domain.com/profile/pawel.psztyc",
|
|
7
|
+
"image": {
|
|
8
|
+
"url": "https://domain.com/profile/pawel.psztyc/image",
|
|
9
|
+
"thumb": "https://domain.com/profile/pawel.psztyc/image/thumb"
|
|
10
|
+
},
|
|
11
|
+
"tagline": "Some text about me.",
|
|
12
|
+
"language": "en_GB",
|
|
13
|
+
"etag": "\"W\\244m4n5kj3gbn2nj4k4n4\""
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<Person error="false">
|
|
3
|
+
<id>Qawer63J73HJ6khjswuqyq62382jG21s</id>
|
|
4
|
+
<name>John Smith</name>
|
|
5
|
+
<birthday>1990-10-12</birthday>
|
|
6
|
+
<gender>male</gender>
|
|
7
|
+
<url>https://www.domain.com/people/Qawer63J73HJ6khjswuqyq62382jG21s</url>
|
|
8
|
+
<image>
|
|
9
|
+
<url>https://www.domain.com/people/Qawer63J73HJ6khjswuqyq62382jG21s/image</url>
|
|
10
|
+
<thumb>https://www.domain.com/people/Qawer63J73HJ6khjswuqyq62382jG21s/image/thumb</thumb>
|
|
11
|
+
</image>
|
|
12
|
+
<tagline>Hi, I'm John!</tagline>
|
|
13
|
+
<language>en_US</language>
|
|
14
|
+
<etag>W\\244m4n5kj3gbn2nj4k4n4</etag>
|
|
15
|
+
</Person>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
|
|
3
|
+
<xs:element name="Person">
|
|
4
|
+
<xs:complexType>
|
|
5
|
+
<xs:sequence>
|
|
6
|
+
<xs:element name="id" type="xs:string"></xs:element>
|
|
7
|
+
<xs:element name="name" type="xs:string"></xs:element>
|
|
8
|
+
<xs:element name="birthday" type="xs:date"></xs:element>
|
|
9
|
+
<xs:element name="gender" type="xs:string"></xs:element>
|
|
10
|
+
<xs:element name="url" type="xs:string"></xs:element>
|
|
11
|
+
<xs:element name="image">
|
|
12
|
+
<xs:complexType>
|
|
13
|
+
<xs:sequence>
|
|
14
|
+
<xs:element name="url" type="xs:string"></xs:element>
|
|
15
|
+
<xs:element name="thumb" type="xs:string"></xs:element>
|
|
16
|
+
</xs:sequence>
|
|
17
|
+
</xs:complexType>
|
|
18
|
+
</xs:element>
|
|
19
|
+
<xs:element name="tagline" type="xs:string"></xs:element>
|
|
20
|
+
<xs:element name="language" type="xs:string"></xs:element>
|
|
21
|
+
<xs:element name="etag" type="xs:string"></xs:element>
|
|
22
|
+
</xs:sequence>
|
|
23
|
+
<xs:attribute name="error" type="xs:boolean" use="required"></xs:attribute>
|
|
24
|
+
</xs:complexType>
|
|
25
|
+
</xs:element>
|
|
26
|
+
</xs:schema>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
companyIdentification: !include example-1.raml
|
|
2
|
+
companyName: 'GRAYDON BELGIË NV'
|
|
3
|
+
alternateCompanyName: 'GRAYDON BELGIQUE NV'
|
|
4
|
+
tradeNames:
|
|
5
|
+
- 'GRAYDON'
|
|
6
|
+
- 'MARKTSELECT'
|
|
7
|
+
- 'CREDITEL'
|
|
8
|
+
- 'ACM'
|
|
9
|
+
- 'IT FACILITY MANAGEMENT'
|
|
10
|
+
companyAddress: !include example-2.raml
|
|
11
|
+
contactInformation: !include example-3.raml
|
|
12
|
+
legalForm: !include example-4.raml
|
|
13
|
+
size: !include example-5.raml
|
|
14
|
+
industry:
|
|
15
|
+
- !include example-6.raml
|
|
16
|
+
activities: !include example-7.raml
|
|
17
|
+
isActive: "true"
|
|
18
|
+
foundationDate: 1940-07-11
|
|
19
|
+
dissolutionDate: 2007-01-01
|
|
20
|
+
nonEmailIndicator: true
|
|
21
|
+
#numberOfBranchOffices: 0
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#%RAML 1.0 DataType
|
|
2
|
+
type: object
|
|
3
|
+
displayName: User
|
|
4
|
+
properties:
|
|
5
|
+
id:
|
|
6
|
+
displayName: Id
|
|
7
|
+
username:
|
|
8
|
+
displayName: Username
|
|
9
|
+
firstName:
|
|
10
|
+
displayName: First Name
|
|
11
|
+
lastName:
|
|
12
|
+
displayName: Last Name
|
|
13
|
+
profilePhoto:
|
|
14
|
+
displayName: Profile photo
|
|
15
|
+
email:
|
|
16
|
+
displayName: Email
|
|
17
|
+
example: !include user.json
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#%RAML 1.0 DataType
|
|
2
|
+
type: object
|
|
3
|
+
displayName: User
|
|
4
|
+
properties:
|
|
5
|
+
id:
|
|
6
|
+
displayName: Id
|
|
7
|
+
username:
|
|
8
|
+
displayName: Username
|
|
9
|
+
firstName:
|
|
10
|
+
displayName: First Name
|
|
11
|
+
lastName:
|
|
12
|
+
displayName: Last Name
|
|
13
|
+
profilePhoto:
|
|
14
|
+
displayName: Profile photo
|
|
15
|
+
email:
|
|
16
|
+
displayName: Email
|
|
17
|
+
age: integer
|
|
18
|
+
newsletter: boolean
|
|
19
|
+
examples:
|
|
20
|
+
User 1:
|
|
21
|
+
id: uid1
|
|
22
|
+
username: ppsztyc
|
|
23
|
+
firstName: Pawel
|
|
24
|
+
lastName: Psztyc
|
|
25
|
+
profilePhoto: https://img/domain.com/ppsztyc
|
|
26
|
+
email: ppsztyc@domain.com
|
|
27
|
+
age: 35
|
|
28
|
+
newsletter: true
|
|
29
|
+
User 2:
|
|
30
|
+
id: uid2
|
|
31
|
+
username: jdoe
|
|
32
|
+
firstName: John
|
|
33
|
+
lastName: Does
|
|
34
|
+
profilePhoto: https://img/domain.com/jdoe
|
|
35
|
+
email: jdoe@domain.com
|
|
36
|
+
age: 25
|
|
37
|
+
newsletter: false
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#%RAML 1.0 DataType
|
|
2
|
+
type: object
|
|
3
|
+
displayName: User
|
|
4
|
+
properties:
|
|
5
|
+
id:
|
|
6
|
+
displayName: Id
|
|
7
|
+
username:
|
|
8
|
+
displayName: Username
|
|
9
|
+
firstName:
|
|
10
|
+
displayName: First Name
|
|
11
|
+
lastName:
|
|
12
|
+
displayName: Last Name
|
|
13
|
+
profilePhoto:
|
|
14
|
+
displayName: Profile photo
|
|
15
|
+
email:
|
|
16
|
+
displayName: Email
|
|
17
|
+
age: integer
|
|
18
|
+
newsletter: boolean
|