@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,251 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@graph": [
|
|
3
|
+
{
|
|
4
|
+
"@id": "#1",
|
|
5
|
+
"@type": [
|
|
6
|
+
"doc:APIContractProcessingData"
|
|
7
|
+
],
|
|
8
|
+
"apiContract:modelVersion": "3.7.0",
|
|
9
|
+
"doc:transformed": true,
|
|
10
|
+
"doc:sourceSpec": "RAML 1.0"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"@id": "#2",
|
|
14
|
+
"@type": [
|
|
15
|
+
"apiContract:WebAPI",
|
|
16
|
+
"apiContract:API",
|
|
17
|
+
"doc:RootDomainElement",
|
|
18
|
+
"doc:DomainElement"
|
|
19
|
+
],
|
|
20
|
+
"core:name": "Simple API",
|
|
21
|
+
"apiContract:endpoint": [
|
|
22
|
+
{
|
|
23
|
+
"@id": "#3"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"sourcemaps:sources": [
|
|
27
|
+
{
|
|
28
|
+
"@id": "#2/source-map"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"@id": "#3",
|
|
34
|
+
"@type": [
|
|
35
|
+
"apiContract:EndPoint",
|
|
36
|
+
"doc:DomainElement"
|
|
37
|
+
],
|
|
38
|
+
"apiContract:path": "/people",
|
|
39
|
+
"apiContract:supportedOperation": [
|
|
40
|
+
{
|
|
41
|
+
"@id": "#4"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"@id": "#5"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"@id": "#6"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"@id": "#7"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"sourcemaps:sources": [
|
|
54
|
+
{
|
|
55
|
+
"@id": "#3/source-map"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"@id": "#2/source-map",
|
|
61
|
+
"@type": [
|
|
62
|
+
"sourcemaps:SourceMap"
|
|
63
|
+
],
|
|
64
|
+
"sourcemaps:lexical": [
|
|
65
|
+
{
|
|
66
|
+
"@id": "#2/source-map/lexical/element_1"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"@id": "#2/source-map/lexical/element_0"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"@id": "#4",
|
|
75
|
+
"@type": [
|
|
76
|
+
"apiContract:Operation",
|
|
77
|
+
"core:Operation",
|
|
78
|
+
"doc:DomainElement"
|
|
79
|
+
],
|
|
80
|
+
"apiContract:method": "get",
|
|
81
|
+
"sourcemaps:sources": [
|
|
82
|
+
{
|
|
83
|
+
"@id": "#4/source-map"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"@id": "#5",
|
|
89
|
+
"@type": [
|
|
90
|
+
"apiContract:Operation",
|
|
91
|
+
"core:Operation",
|
|
92
|
+
"doc:DomainElement"
|
|
93
|
+
],
|
|
94
|
+
"apiContract:method": "post",
|
|
95
|
+
"sourcemaps:sources": [
|
|
96
|
+
{
|
|
97
|
+
"@id": "#5/source-map"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"@id": "#6",
|
|
103
|
+
"@type": [
|
|
104
|
+
"apiContract:Operation",
|
|
105
|
+
"core:Operation",
|
|
106
|
+
"doc:DomainElement"
|
|
107
|
+
],
|
|
108
|
+
"apiContract:method": "put",
|
|
109
|
+
"sourcemaps:sources": [
|
|
110
|
+
{
|
|
111
|
+
"@id": "#6/source-map"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"@id": "#7",
|
|
117
|
+
"@type": [
|
|
118
|
+
"apiContract:Operation",
|
|
119
|
+
"core:Operation",
|
|
120
|
+
"doc:DomainElement"
|
|
121
|
+
],
|
|
122
|
+
"apiContract:method": "patch",
|
|
123
|
+
"sourcemaps:sources": [
|
|
124
|
+
{
|
|
125
|
+
"@id": "#7/source-map"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"@id": "#3/source-map",
|
|
131
|
+
"@type": [
|
|
132
|
+
"sourcemaps:SourceMap"
|
|
133
|
+
],
|
|
134
|
+
"sourcemaps:lexical": [
|
|
135
|
+
{
|
|
136
|
+
"@id": "#3/source-map/lexical/element_1"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"@id": "#3/source-map/lexical/element_0"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"@id": "#2/source-map/lexical/element_1",
|
|
145
|
+
"sourcemaps:element": "amf://id#2",
|
|
146
|
+
"sourcemaps:value": "[(2,0)-(9,0)]"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"@id": "#2/source-map/lexical/element_0",
|
|
150
|
+
"sourcemaps:element": "core:name",
|
|
151
|
+
"sourcemaps:value": "[(2,0)-(4,0)]"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"@id": "#4/source-map",
|
|
155
|
+
"@type": [
|
|
156
|
+
"sourcemaps:SourceMap"
|
|
157
|
+
],
|
|
158
|
+
"sourcemaps:lexical": [
|
|
159
|
+
{
|
|
160
|
+
"@id": "#4/source-map/lexical/element_0"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"@id": "#5/source-map",
|
|
166
|
+
"@type": [
|
|
167
|
+
"sourcemaps:SourceMap"
|
|
168
|
+
],
|
|
169
|
+
"sourcemaps:lexical": [
|
|
170
|
+
{
|
|
171
|
+
"@id": "#5/source-map/lexical/element_0"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"@id": "#6/source-map",
|
|
177
|
+
"@type": [
|
|
178
|
+
"sourcemaps:SourceMap"
|
|
179
|
+
],
|
|
180
|
+
"sourcemaps:lexical": [
|
|
181
|
+
{
|
|
182
|
+
"@id": "#6/source-map/lexical/element_0"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"@id": "#7/source-map",
|
|
188
|
+
"@type": [
|
|
189
|
+
"sourcemaps:SourceMap"
|
|
190
|
+
],
|
|
191
|
+
"sourcemaps:lexical": [
|
|
192
|
+
{
|
|
193
|
+
"@id": "#7/source-map/lexical/element_0"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"@id": "#3/source-map/lexical/element_1",
|
|
199
|
+
"sourcemaps:element": "amf://id#3",
|
|
200
|
+
"sourcemaps:value": "[(4,0)-(9,0)]"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"@id": "#3/source-map/lexical/element_0",
|
|
204
|
+
"sourcemaps:element": "apiContract:path",
|
|
205
|
+
"sourcemaps:value": "[(4,0)-(4,7)]"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"@id": "#4/source-map/lexical/element_0",
|
|
209
|
+
"sourcemaps:element": "amf://id#4",
|
|
210
|
+
"sourcemaps:value": "[(5,2)-(6,0)]"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"@id": "#5/source-map/lexical/element_0",
|
|
214
|
+
"sourcemaps:element": "amf://id#5",
|
|
215
|
+
"sourcemaps:value": "[(6,2)-(7,0)]"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"@id": "#6/source-map/lexical/element_0",
|
|
219
|
+
"sourcemaps:element": "amf://id#6",
|
|
220
|
+
"sourcemaps:value": "[(7,2)-(8,0)]"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"@id": "#7/source-map/lexical/element_0",
|
|
224
|
+
"sourcemaps:element": "amf://id#7",
|
|
225
|
+
"sourcemaps:value": "[(8,2)-(9,0)]"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"@id": "",
|
|
229
|
+
"@type": [
|
|
230
|
+
"doc:Document",
|
|
231
|
+
"doc:Fragment",
|
|
232
|
+
"doc:Module",
|
|
233
|
+
"doc:Unit"
|
|
234
|
+
],
|
|
235
|
+
"doc:encodes": {
|
|
236
|
+
"@id": "#2"
|
|
237
|
+
},
|
|
238
|
+
"doc:root": true,
|
|
239
|
+
"doc:processingData": {
|
|
240
|
+
"@id": "#1"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"@context": {
|
|
245
|
+
"@base": "amf://id",
|
|
246
|
+
"doc": "http://a.ml/vocabularies/document#",
|
|
247
|
+
"apiContract": "http://a.ml/vocabularies/apiContract#",
|
|
248
|
+
"core": "http://a.ml/vocabularies/core#",
|
|
249
|
+
"sourcemaps": "http://a.ml/vocabularies/document-source-maps#"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@graph": [
|
|
3
|
+
{
|
|
4
|
+
"@id": "#1",
|
|
5
|
+
"@type": [
|
|
6
|
+
"doc:APIContractProcessingData"
|
|
7
|
+
],
|
|
8
|
+
"apiContract:modelVersion": "3.7.0",
|
|
9
|
+
"doc:transformed": true,
|
|
10
|
+
"doc:sourceSpec": "RAML 1.0"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"@id": "#2",
|
|
14
|
+
"@type": [
|
|
15
|
+
"apiContract:WebAPI",
|
|
16
|
+
"apiContract:API",
|
|
17
|
+
"doc:RootDomainElement",
|
|
18
|
+
"doc:DomainElement"
|
|
19
|
+
],
|
|
20
|
+
"core:name": "Simple API",
|
|
21
|
+
"apiContract:endpoint": [
|
|
22
|
+
{
|
|
23
|
+
"@id": "#3"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"sourcemaps:sources": [
|
|
27
|
+
{
|
|
28
|
+
"@id": "#2/source-map"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"@id": "#3",
|
|
34
|
+
"@type": [
|
|
35
|
+
"apiContract:EndPoint",
|
|
36
|
+
"doc:DomainElement"
|
|
37
|
+
],
|
|
38
|
+
"apiContract:path": "/people",
|
|
39
|
+
"apiContract:supportedOperation": [
|
|
40
|
+
{
|
|
41
|
+
"@id": "#4"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"@id": "#5"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"@id": "#6"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"@id": "#7"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"sourcemaps:sources": [
|
|
54
|
+
{
|
|
55
|
+
"@id": "#3/source-map"
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"@id": "#2/source-map",
|
|
61
|
+
"@type": [
|
|
62
|
+
"sourcemaps:SourceMap"
|
|
63
|
+
],
|
|
64
|
+
"sourcemaps:lexical": [
|
|
65
|
+
{
|
|
66
|
+
"@id": "#2/source-map/lexical/element_1"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"@id": "#2/source-map/lexical/element_0"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"@id": "#4",
|
|
75
|
+
"@type": [
|
|
76
|
+
"apiContract:Operation",
|
|
77
|
+
"core:Operation",
|
|
78
|
+
"doc:DomainElement"
|
|
79
|
+
],
|
|
80
|
+
"apiContract:method": "get",
|
|
81
|
+
"sourcemaps:sources": [
|
|
82
|
+
{
|
|
83
|
+
"@id": "#4/source-map"
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"@id": "#5",
|
|
89
|
+
"@type": [
|
|
90
|
+
"apiContract:Operation",
|
|
91
|
+
"core:Operation",
|
|
92
|
+
"doc:DomainElement"
|
|
93
|
+
],
|
|
94
|
+
"apiContract:method": "post",
|
|
95
|
+
"sourcemaps:sources": [
|
|
96
|
+
{
|
|
97
|
+
"@id": "#5/source-map"
|
|
98
|
+
}
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"@id": "#6",
|
|
103
|
+
"@type": [
|
|
104
|
+
"apiContract:Operation",
|
|
105
|
+
"core:Operation",
|
|
106
|
+
"doc:DomainElement"
|
|
107
|
+
],
|
|
108
|
+
"apiContract:method": "put",
|
|
109
|
+
"sourcemaps:sources": [
|
|
110
|
+
{
|
|
111
|
+
"@id": "#6/source-map"
|
|
112
|
+
}
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"@id": "#7",
|
|
117
|
+
"@type": [
|
|
118
|
+
"apiContract:Operation",
|
|
119
|
+
"core:Operation",
|
|
120
|
+
"doc:DomainElement"
|
|
121
|
+
],
|
|
122
|
+
"apiContract:method": "patch",
|
|
123
|
+
"sourcemaps:sources": [
|
|
124
|
+
{
|
|
125
|
+
"@id": "#7/source-map"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"@id": "#3/source-map",
|
|
131
|
+
"@type": [
|
|
132
|
+
"sourcemaps:SourceMap"
|
|
133
|
+
],
|
|
134
|
+
"sourcemaps:lexical": [
|
|
135
|
+
{
|
|
136
|
+
"@id": "#3/source-map/lexical/element_1"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
"@id": "#3/source-map/lexical/element_0"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"@id": "#2/source-map/lexical/element_1",
|
|
145
|
+
"sourcemaps:element": "amf://id#2",
|
|
146
|
+
"sourcemaps:value": "[(2,0)-(9,0)]"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"@id": "#2/source-map/lexical/element_0",
|
|
150
|
+
"sourcemaps:element": "core:name",
|
|
151
|
+
"sourcemaps:value": "[(2,0)-(4,0)]"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"@id": "#4/source-map",
|
|
155
|
+
"@type": [
|
|
156
|
+
"sourcemaps:SourceMap"
|
|
157
|
+
],
|
|
158
|
+
"sourcemaps:lexical": [
|
|
159
|
+
{
|
|
160
|
+
"@id": "#4/source-map/lexical/element_0"
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"@id": "#5/source-map",
|
|
166
|
+
"@type": [
|
|
167
|
+
"sourcemaps:SourceMap"
|
|
168
|
+
],
|
|
169
|
+
"sourcemaps:lexical": [
|
|
170
|
+
{
|
|
171
|
+
"@id": "#5/source-map/lexical/element_0"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"@id": "#6/source-map",
|
|
177
|
+
"@type": [
|
|
178
|
+
"sourcemaps:SourceMap"
|
|
179
|
+
],
|
|
180
|
+
"sourcemaps:lexical": [
|
|
181
|
+
{
|
|
182
|
+
"@id": "#6/source-map/lexical/element_0"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"@id": "#7/source-map",
|
|
188
|
+
"@type": [
|
|
189
|
+
"sourcemaps:SourceMap"
|
|
190
|
+
],
|
|
191
|
+
"sourcemaps:lexical": [
|
|
192
|
+
{
|
|
193
|
+
"@id": "#7/source-map/lexical/element_0"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"@id": "#3/source-map/lexical/element_1",
|
|
199
|
+
"sourcemaps:element": "amf://id#3",
|
|
200
|
+
"sourcemaps:value": "[(4,0)-(9,0)]"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"@id": "#3/source-map/lexical/element_0",
|
|
204
|
+
"sourcemaps:element": "apiContract:path",
|
|
205
|
+
"sourcemaps:value": "[(4,0)-(4,7)]"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"@id": "#4/source-map/lexical/element_0",
|
|
209
|
+
"sourcemaps:element": "amf://id#4",
|
|
210
|
+
"sourcemaps:value": "[(5,2)-(6,0)]"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"@id": "#5/source-map/lexical/element_0",
|
|
214
|
+
"sourcemaps:element": "amf://id#5",
|
|
215
|
+
"sourcemaps:value": "[(6,2)-(7,0)]"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"@id": "#6/source-map/lexical/element_0",
|
|
219
|
+
"sourcemaps:element": "amf://id#6",
|
|
220
|
+
"sourcemaps:value": "[(7,2)-(8,0)]"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"@id": "#7/source-map/lexical/element_0",
|
|
224
|
+
"sourcemaps:element": "amf://id#7",
|
|
225
|
+
"sourcemaps:value": "[(8,2)-(9,0)]"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"@id": "",
|
|
229
|
+
"@type": [
|
|
230
|
+
"doc:Document",
|
|
231
|
+
"doc:Fragment",
|
|
232
|
+
"doc:Module",
|
|
233
|
+
"doc:Unit"
|
|
234
|
+
],
|
|
235
|
+
"doc:encodes": {
|
|
236
|
+
"@id": "#2"
|
|
237
|
+
},
|
|
238
|
+
"doc:root": true,
|
|
239
|
+
"doc:processingData": {
|
|
240
|
+
"@id": "#1"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"@context": {
|
|
245
|
+
"@base": "amf://id",
|
|
246
|
+
"doc": "http://a.ml/vocabularies/document#",
|
|
247
|
+
"apiContract": "http://a.ml/vocabularies/apiContract#",
|
|
248
|
+
"core": "http://a.ml/vocabularies/core#",
|
|
249
|
+
"sourcemaps": "http://a.ml/vocabularies/document-source-maps#"
|
|
250
|
+
}
|
|
251
|
+
}
|