-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathhrid-settings-storage.raml
More file actions
72 lines (68 loc) · 2.11 KB
/
hrid-settings-storage.raml
File metadata and controls
72 lines (68 loc) · 2.11 KB
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
#%RAML 1.0
title: HRID Settings Storage
version: v1.2
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: HRID Settings Storage API
content: <b>Storage for Human Readable Identifier (HRID) Settings</b>
types:
HridSettings: !include schemas/hrid-settings/hridsettings.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
/hrid-settings-storage:
/hrid-settings:
displayName: HRID Settings
description: Service endpoints that manage HRID settings
get:
description: Return the HRID settings
responses:
200:
description: Returns the user account info
body:
application/json:
schema: HridSettings
example: !include examples/hridsettings.json
401:
description: Not authorized to perform requested action
body:
text/plain:
example: unable to get account -- unauthorized
403:
description: Access Denied
body:
text/plain:
example: Access Denied
500:
description: Internal server error, e.g. due to misconfiguration
body:
text/plain:
example: internal server error, contact administrator
put:
description: Modifies HRID settings
is: [validate]
body:
application/json:
type: HridSettings
example:
strict: false
value: !include examples/hridsettings.json
responses:
204:
description: Item successfully updated
401:
description: Not authorized to perform requested action
body:
text/plain:
example: unable to get account -- unauthorized
403:
description: Access Denied
body:
text/plain:
example: Access Denied
500:
description: Internal server error, e.g. due to misconfiguration
body:
text/plain:
example: internal server error, contact administrator