forked from folio-org/mod-circulation-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactual-cost-record-storage.raml
59 lines (53 loc) · 1.73 KB
/
actual-cost-record-storage.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
#%RAML 1.0
title: Actual Cost Record Storage
version: v0.7
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Actual cost record API
content: <b>Storage for actual cost record</b>
types:
actual-cost-record: !include actual-cost-record.json
actual-cost-records: !include actual-cost-records.json
errors: !include raml-util/schemas/errors.schema
parameters: !include raml-util/schemas/parameters.schema
traits:
language: !include raml-util/traits/language.raml
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
validate: !include raml-util/traits/validation.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/actual-cost-record-storage:
/actual-cost-records:
displayName: Actual cost records
type:
collection:
exampleCollection: !include examples/actual-cost-records.json
exampleItem: !include examples/actual-cost-record.json
schemaCollection: actual-cost-records
schemaItem: actual-cost-record
get:
is: [pageable,
searchable: {description: "by using CQL",
example: "lossType=\"Aged to lost\""}
]
post:
is: [validate]
body:
application/json:
type: actual-cost-record
/{id}:
type:
collection-item:
exampleItem: !include examples/actual-cost-record.json
schema: actual-cost-record
get:
description: "Get actual cost record"
put:
description: "Update actual cost record"
is: [validate]
delete:
description: "Delete actual cost record"
is: [language]