-
Notifications
You must be signed in to change notification settings - Fork 19
/
request-policy-storage.raml
122 lines (117 loc) · 3.63 KB
/
request-policy-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
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: Request Policy Storage
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Request Policy Storage API
content: <b>Storage for request policies</b>
types:
request-policy: !include request-policy.json
request-policies: !include request-policies.json
servicepoint: !include service-point.json
servicepoints: !include service-points.json
errors: !include raml-util/schemas/errors.schema
traits:
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/request-policy-storage:
/request-policies:
displayName: Request Policies
type:
collection:
exampleCollection: !include examples/request-policies.json
exampleItem: !include examples/request-policy.json
schemaCollection: request-policies
schemaItem: request-policy
get:
is: [pageable,
searchable: {description: "searchable using CQL",
example: "id=\"cf23adf0-61ba-4887-bf82-956c4aae2260\""},
]
responses:
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"
post:
responses:
201:
description: "Request policy created"
body:
application/json:
type: request-policy
422:
description: "Request policy validation failure"
body:
application/json:
type: errors
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"
delete:
responses:
204:
description: "All request policies deleted"
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"
501:
description: "Not implemented yet"
/{requestPolicyId}:
type:
collection-item:
exampleItem: !include examples/request-policy.json
schema: request-policy
get:
responses:
200:
description: "Request policy successfully retreived"
body:
application/json:
type: request-policy
501:
description: "Not implemented yet"
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"
404:
description: "Not found"
body:
text/plain:
example: "Internal server error, contact administrator"
put:
responses:
204:
description: "Request policy successfully updated"
422:
description: "Request policy validation failure"
body:
application/json:
type: errors
501:
description: "Not implemented yet"
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"
delete:
responses:
204:
description: "Request policy successfully deleted"
500:
description: "General errors"
body:
text/plain:
example: "Internal server error, contact administrator"