-
Notifications
You must be signed in to change notification settings - Fork 16
/
inventory-move.raml
66 lines (62 loc) · 1.63 KB
/
inventory-move.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
#%RAML 1.0
title: Inventory Move API
version: v0.2
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: "Inventory Move API"
content: <b>API for moving items between holdings and holdings between instances</b>
types:
errors: !include raml-util/schemas/errors.schema
items_move: !include items_move.json
holdings_move: !include holdings_move.json
move_response: !include move_response.json
traits:
language: !include raml-util/traits/language.raml
validate: !include raml-util/traits/validation.raml
/inventory/items/move:
displayName: Items Move
post:
is: [validate]
body:
application/json:
type: items_move
responses:
200:
description: "Items moved to another holdings record"
body:
application/json:
type: move_response
422:
description: "Validation error"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
/inventory/holdings/move:
displayName: Holdings Record Move
post:
is: [validate]
body:
application/json:
type: holdings_move
responses:
200:
description: "Holdings record moved to another instance"
body:
application/json:
type: move_response
422:
description: "Validation error"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"