-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfield-protection-settings.raml
65 lines (59 loc) · 2.37 KB
/
field-protection-settings.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
#%RAML 1.0
title: Field Protection Settings
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: Field Protection Settings API
content: API for managing field protection settings
types:
errors: !include raml-storage/raml-util/schemas/errors.schema
marcFieldProtectionSetting: !include raml-storage/schemas/mod-data-import-converter-storage/marc-field-protection/marcFieldProtectionSetting.json
marcFieldProtectionSettingsCollection: !include raml-storage/schemas/mod-data-import-converter-storage/marc-field-protection/marcFieldProtectionSettingsCollection.json
traits:
validate: !include raml-storage/raml-util/traits/validation.raml
pageable: !include raml-storage/raml-util/traits/pageable.raml
searchable: !include raml-storage/raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-storage/raml-util/rtypes/collection.raml
collection-item: !include raml-storage/raml-util/rtypes/item-collection.raml
/field-protection-settings:
/marc:
displayName: MARC field protection settings
description: API for managing MARC field protection settings
type:
collection:
schemaCollection: marcFieldProtectionSettingsCollection
schemaItem: marcFieldProtectionSetting
exampleCollection: !include raml-storage/examples/mod-data-import-converter-storage/marc-field-protection/marcFieldProtectionSettingsCollection.sample
exampleItem: !include raml-storage/examples/mod-data-import-converter-storage/marc-field-protection/marcFieldProtectionSetting.sample
get:
is: [
searchable: {
description:
"with valid searchable fields: for example source=SYSTEM",
example:
"source=SYSTEM"
},
pageable,
validate
]
post:
is: [validate]
/{id}:
displayName: MARC field protection setting
description: Get, Delete or Update specific MARC field protection setting
type:
collection-item:
schema: marcFieldProtectionSetting
exampleItem: !include raml-storage/examples/mod-data-import-converter-storage/marc-field-protection/marcFieldProtectionSetting.sample
put:
is: [validate]
responses:
200:
body:
application/json:
type: marcFieldProtectionSetting
delete:
responses:
204: