-
Notifications
You must be signed in to change notification settings - Fork 19
/
print-events-storage.raml
73 lines (69 loc) · 2.1 KB
/
print-events-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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#%RAML 1.0
title: Print Events Storage
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Print Events Storage API
content: <b>Storage for print events</b>
types:
print-events-request: !include print-events-request.json
print-events-status-request: !include print-events-status-request.json
print-events-status-responses: !include print-events-status-responses.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
/print-events-storage:
/print-events-entry:
post:
is: [validate]
description: save a print event log
body:
application/json:
type: print-events-request
responses:
201:
description: "All items have been successfully created or updated"
409:
description: "Optimistic locking version conflict"
body:
text/plain:
example: "Version error"
413:
description: "Payload too large"
body:
text/plain:
example: "Payload too large"
422:
description: "Unprocessable entity"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
/print-events-status:
post:
is: [validate]
description: Fetch batch of print event details
body:
application/json:
type: print-events-status-request
responses:
200:
description: "Requests print event details are successfully retreived"
body:
application/json:
type: print-events-status-responses
422:
description: "Unprocessable entity"
body:
application/json:
type: errors
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"