-
Notifications
You must be signed in to change notification settings - Fork 20
/
async-migration.raml
98 lines (94 loc) · 2.8 KB
/
async-migration.raml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#%RAML 1.0
title: Async migrations API
version: v0.1
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: Async migrations API
content: Running async migrations proceses for inventory enteties
types:
asyncMigrationJob: !include migration/migration-job-by-id-response.json
asyncMigrationJobCollection: !include migration/migration-job-collection-response.json
asyncMigrations: !include migration/migrations-get-response.json
asyncMigrationJobRequest: !include migration/migration-job-post-request.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
/inventory-storage/migrations:
displayName: Async migrations
get:
description: Avalilible async migrations for the inventory-storage
responses:
200:
body:
application/json:
type: asyncMigrations
500:
description: Internal server error
body:
text/plain:
example: Internal server error
/jobs:
get:
description: Get migration jobs
responses:
200:
description: Migration jobs collection has returned
body:
application/json:
type: asyncMigrationJobCollection
500:
description: Internal server error
body:
text/plain:
example: Internal server error
post:
description: Submit a migration job
body:
application/json:
type: asyncMigrationJobRequest
responses:
200:
description: Migration job has been submitted
body:
application/json:
type: asyncMigrationJob
500:
description: Internal server error
body:
text/plain:
example: Internal server error
/{id}:
get:
description: Get migration job by id
responses:
200:
description: Migration job has returned
body:
application/json:
type: asyncMigrationJob
404:
description: Migration job with id not found
body:
text/plain:
example: Not found
500:
description: Internal server error
body:
text/plain:
example: Internal server error
delete:
description: Cancell migration job by id
responses:
204:
description: Migration job has been cancelled
404:
description: Migration job with id not found
body:
text/plain:
example: Not found
500:
description: Internal server error
body:
text/plain:
example: Internal server error