-
Notifications
You must be signed in to change notification settings - Fork 7
/
bind-pieces.raml
38 lines (32 loc) · 1.23 KB
/
bind-pieces.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
#%RAML 1.0
title: Bind Pieces
baseUri: https://github.com/folio-org/mod-orders
version: v1
protocols: [ HTTP, HTTPS ]
documentation:
- title: Orders Business Logic API
content: <b>API for binding pieces with item for one title</b>
types:
bind-pieces-collection: !include acq-models/mod-orders/schemas/bindPiecesCollection.json
receiving-results: !include acq-models/mod-orders/schemas/receivingResults.json
errors: !include raml-util/schemas/errors.schema
UUID:
type: string
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
traits:
validate: !include raml-util/traits/validation.raml
resourceTypes:
post-with-200: !include rtypes/post-json-200.raml
/orders/bind-pieces:
displayName: Bind pieces
description: |
This endpoint used to bind pieces to one item and connect that item to title.
type:
post-with-200:
requestSchema: bind-pieces-collection
responseSchema: receiving-results
requestExample: !include acq-models/mod-orders/examples/bindPiecesCollection.sample
responseExample: !include acq-models/mod-orders/examples/receivingResults.sample
is: [validate]
post:
description: bind pieces to item and connect that item to title