Skip to content

Commit b11c2d3

Browse files
committed
Updated API from documentation release
1 parent 6054da2 commit b11c2d3

13 files changed

+61
-32
lines changed

api-specs/api/types/event/ImportContainerCreatedEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ example: !include ../../examples/Event/ImportContainerCreatedEvent.json
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportContainerCreatedEventData
1514
description: |

api-specs/api/types/event/ImportContainerDeletedEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ discriminatorValue: ImportContainerDeleted
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportContainerDeletedEventData
1514
description: |

api-specs/api/types/event/ImportOperationRejectedEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ discriminatorValue: ImportOperationRejected
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportOperationRejectedEventData
1514
description: |

api-specs/api/types/event/ImportUnresolvedEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ example: !include ../../examples/Event/ImportUnresolvedEvent.json
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportUnresolvedEventData
1514
description: |

api-specs/api/types/event/ImportValidationFailedEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ discriminatorValue: ImportValidationFailed
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportValidationFailedEventData
1514
description: |

api-specs/api/types/event/ImportWaitForMasterVariantEvent.raml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ discriminatorValue: ImportWaitForMasterVariant
88
properties:
99
resourceType:
1010
type: EventSubscriptionResourceTypeId
11-
enum:
12-
- import-api
11+
default: 'import-api'
1312
data:
1413
type: ImportWaitForMasterVariantEventData
1514
description: |

api-specs/api/types/subscription/EventSubscriptionResourceTypeId.raml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ enum:
88
- import-api
99
(enumDescriptions):
1010
import-api: |
11-
Events related to the Import API.
11+
Events related to the [Import API](/../api/import-export/overview).

api-specs/api/types/subscription/EventType.raml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,16 @@ enum:
1111
- ImportUnresolved
1212
- ImportValidationFailed
1313
- ImportWaitForMasterVariant
14+
(enumDescriptions):
15+
ImportContainerCreated: |
16+
Indicates an [Import Container Created Event](ctp:api:type:ImportContainerCreatedEvent).
17+
ImportContainerDeleted: |
18+
Indicates an [Import Container Deleted Event](ctp:api:type:ImportContainerDeletedEvent).
19+
ImportOperationRejected: |
20+
Indicates an [Import Operation Rejected Event](ctp:api:type:ImportOperationRejectedEvent).
21+
ImportUnresolved: |
22+
Indicates an [Import Unresolved Event](ctp:api:type:ImportUnresolvedEvent).
23+
ImportValidationFailed: |
24+
Indicates an [Import Validation Failed Event](ctp:api:type:ImportValidationFailedEvent).
25+
ImportWaitForMasterVariant: |
26+
Indicates an [Import Wait For Master Variant Event](ctp:api:type:ImportWaitForMasterVariantEvent).

api-specs/import/api.raml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,11 @@ traits:
165165
type: string
166166
/import-containers:
167167
post:
168-
displayName: Creates a new import container.
169-
description: Creates a new import container.
168+
displayName: Create a new Import Container.
169+
description: |
170+
Creates a new Import Container.
171+
172+
Generates the [ImportContainerCreated](/projects/events#import-container-created-event) Event.
170173
is:
171174
- secured_by_manage_import_containers
172175
body:
@@ -201,29 +204,30 @@ traits:
201204
description: |
202205
See [Sorting](/../api/general-concepts#sorting).
203206
type: string[]
204-
description: Retrieves all import containers of a given project key.
207+
description: Retrieves all Import Containers of a given project key.
205208
is:
206209
- secured_by_view_import_containers
207210
responses:
208211
200:
209212
body:
210213
type: import-container.ImportContainerPagedResponse
214+
example: !include examples/import-container-paged-query-response.json
211215
/{importContainerKey}:
212216
type: baseByParam
213217
uriParameters:
214218
importContainerKey:
215219
(postman.paramName): import-container-key
216-
description: The key of the import container.
220+
description: The key of the Import Container.
217221
type: string
218222
put:
219-
description: Updates the import container given by the key.
223+
description: Updates the Import Container given by the key.
220224
is:
221225
- secured_by_manage_import_containers
222226
body:
223227
type: import-container.ImportContainerUpdateDraft
224228
responses:
225229
200:
226-
description: The import container was successfully updated.
230+
description: The Import Container was successfully updated.
227231
body:
228232
type: import-container.ImportContainer
229233
example: !include examples/import-container-minimal.json
@@ -235,31 +239,35 @@ traits:
235239
type: error.ErrorResponse
236240
example: !include examples/error-response-concurrent-modification.json
237241
get:
238-
description: Retrieves the import container given by the key.
242+
description: Retrieves the Import Container given by the key.
239243
is:
240244
- secured_by_view_import_containers
241245
responses:
242246
200:
243-
description: The requested import container was found.
247+
description: The requested Import Container was found.
244248
body:
245249
type: import-container.ImportContainer
246250
example: !include examples/import-container-minimal.json
247251
404:
248-
description: The requested import container wasn't found.
252+
description: The requested Import Container wasn't found.
249253
body:
250254
type: error.ErrorResponse
251255
example: !include examples/error-response-resource-not-found.json
252256
delete:
253-
description: Deletes the import container given by the key.
257+
displayName: Delete an Import Container.
258+
description: |
259+
Deletes the Import Container specified by the `importContainerKey`.
260+
261+
Generates the [ImportContainerDeleted](/projects/events#import-container-deleted-event) Event.
254262
is:
255263
- secured_by_manage_import_containers
256264
responses:
257265
200:
258-
description: The deleted import container.
266+
description: The deleted Import Container.
259267
body:
260268
type: import-container.ImportContainer
261269
404:
262-
description: The import container to delete wasn't found.
270+
description: The Import Container to delete wasn't found.
263271
body:
264272
type: error.ErrorResponse
265273
/import-summaries:
@@ -268,7 +276,7 @@ traits:
268276
is:
269277
- secured_by_view_import_containers
270278
description: |
271-
Retrieves an [ImportSummary](ctp:import:type:ImportSummary) for the given import container. An [ImportSummary](ctp:import:type:ImportSummary) is calculated on demand.
279+
Retrieves an [ImportSummary](ctp:import:type:ImportSummary) for the given Import Container. An [ImportSummary](ctp:import:type:ImportSummary) is calculated on demand.
272280
responses:
273281
200:
274282
body:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"limit": 20,
3+
"offset": 0,
4+
"count": 1,
5+
"total": 1,
6+
"results": [
7+
{
8+
"key": "my-import-container",
9+
"version": 1,
10+
"createdAt": "2018-02-05T09:47:16.648Z",
11+
"lastModifiedAt": "2018-02-05T09:47:16.649Z"
12+
}
13+
]
14+
}

0 commit comments

Comments
 (0)