-
Notifications
You must be signed in to change notification settings - Fork 19
/
circulation-rules-storage.raml
47 lines (42 loc) · 1.21 KB
/
circulation-rules-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
#%RAML 1.0
title: Circulation Rules Storage
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Circulation Rules Storage API
content: <b>Storage for circulation rules</b>
types:
circulation-rules: !include circulation-rules.json
errors: !include raml-util/schemas/errors.schema
parameters: !include raml-util/schemas/parameters.schema
traits:
validate: !include raml-util/traits/validation.raml
/circulation-rules-storage:
get:
description: Get the circulation rules
responses:
200:
body:
application/json:
type: circulation-rules
example: !include examples/circulation-rules.json
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
put:
description: Set the circulation rules
body:
application/json:
type: circulation-rules
example: !include examples/circulation-rules.json
responses:
204:
description: "Circulation rules have been saved."
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"