-
Notifications
You must be signed in to change notification settings - Fork 19
/
patron-action-session.raml
81 lines (75 loc) · 2.61 KB
/
patron-action-session.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
#%RAML 1.0
title: Patron Action Session
version: v0.3
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Patron Action Session API
content: <b>Storage for patron action sessions</b>
types:
patron-action-session: !include patron-action-session.json
patron-action-sessions: !include patron-action-sessions.json
errors: !include raml-util/schemas/errors.schema
patron-action-expired-ids-response: !include patron-action-expired-ids-response.json
traits:
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
/patron-action-session-storage:
/patron-action-sessions:
displayName: Patron Action Session
type:
collection:
schemaItem: patron-action-session
schemaCollection: patron-action-sessions
exampleItem: !include examples/patron-action-session.json
exampleCollection: !include examples/patron-action-sessions.json
get:
is: [
pageable,
searchable: {description: "searchable using CQL", example: "name=\"undergrad*\""}
]
post:
is: [validate]
/{patronSessionId}:
type:
collection-item:
schema: patron-action-session
exampleItem: !include examples/patron-action-session.json
put:
is: [validate]
/expired-session-patron-ids:
get:
is: [validate]
queryParameters:
action_type:
description: Parameter to filter expired sessions by patron action type
type: string
required: false
session_inactivity_time_limit:
description: This parameter defines time up to which all sessions are considered as expired. Conforms to the ISO 8601 date and time format
example: 2018-11-29T13:23:36Z
type: string
required: true
limit:
description: Limit the number of sessions returned in the response
type: integer
required: false
example: 10
default: 10
minimum: 0
maximum: 2147483647
responses:
200:
description: "Return list of notice groups"
body:
application/json:
type: patron-action-expired-ids-response
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"