forked from folio-org/mod-circulation-storage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpatron-notice-policy.raml
122 lines (118 loc) · 3.61 KB
/
patron-notice-policy.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
#%RAML 1.0
title: Patron Notice Policies
version: v0.12
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Patron Notice Policies API
content: <b>Storage for Patron Notice Policies</b>
types:
patron-notice-policy: !include patron-notice-policy.json
patron-notice-policies: !include patron-notice-policies.json
errors: !include raml-util/schemas/errors.schema
traits:
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
/patron-notice-policy-storage:
/patron-notice-policies:
displayName: Patron Notice Policies
get:
is: [
pageable,
searchable: {description: "searchable using CQL", example: "name=\"undergrad*\""}
]
description: "Get Patron Notice Policy list"
responses:
200:
description: "Return Patron Notice Policy list"
body:
application/json:
type: patron-notice-policies
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
post:
description: "Create new Patron Notice Policy"
body:
application/json:
type: patron-notice-policy
responses:
201:
description: "Successfully created"
body:
application/json:
type: patron-notice-policy
422:
description: "Unprocessable entity"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
/{patronNoticePolicyId}:
get:
description: "Get Patron Notice Policy by id"
responses:
200:
description: "Return Patron Notice Policy"
body:
application/json:
type: patron-notice-policy
404:
description: "Not found"
body:
text/plain:
example: "Not found"
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
delete:
description: "Delete Patron Notice Policy by id"
responses:
204:
description: "Source record deleted"
400:
description: "Bad request, e.g. malformed request body, query parameter or constraint violation."
body:
text/plain:
example: "Cannot delete in use notice policy"
404:
description: "There is no source record for that patronNoticePolicyId"
body:
text/plain:
example: "Not found"
500:
description: "Internal server error, e.g. due to misconfiguration"
body:
text/plain:
example: "Internal server error"
put:
description: "Update Patron Notice Policy by id"
body:
application/json:
type: patron-notice-policy
responses:
204:
description: "Successfully updated"
404:
description: "Not found"
body:
text/plain:
example: "Not found"
422:
description: "Unprocessable entity"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"