-
Notifications
You must be signed in to change notification settings - Fork 19
/
request-preference-storage.raml
47 lines (42 loc) · 1.39 KB
/
request-preference-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
#%RAML 1.0
title: Request Preference Storage
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost:9130
documentation:
- title: Request Preference Storage API
content: <b>Storage for request oreferences</b>
types:
request-preference: !include request-preference.json
request-preferences: !include request-preferences.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
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-preference-storage:
/request-preference:
displayName: Request Preferences
type:
collection:
exampleCollection: !include examples/request-preference.json
exampleItem: !include examples/request-preferences.json
schemaCollection: request-preferences
schemaItem: request-preference
get:
is: [
pageable,
searchable: {description: "searchable using CQL", example: "userId==1e425b93-501e-44b0-a4c7-b3e66a25c42e"},
]
post:
is: [validate]
/{id}:
type:
collection-item:
exampleItem: !include examples/request-preference.json
schema: request-preference
put:
is: [validate]