-
Notifications
You must be signed in to change notification settings - Fork 6
/
mapping-rules-provider.raml
82 lines (76 loc) · 2.12 KB
/
mapping-rules-provider.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
#%RAML 1.0
title: Mapping rules Provider
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://localhost
documentation:
- title: Mapping rules Provider API
content: API for accessing mapping rules
types:
errors: !include raml-storage/raml-util/schemas/errors.schema
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
/mapping-rules:
/{recordType}:
displayName: recordType
description: get rules by record type
get:
is: [validate]
responses:
200:
body:
application/json:
type: string
400:
description: "Not supported"
body:
text/plain:
example: "Only marc-bib, marc-holdings or marc-authority supports"
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
put:
is: [validate]
body:
application/json:
type: string
responses:
200:
body:
application/json:
type: string
400:
description: "Not supported"
body:
text/plain:
example: "Only marc-bib or marc-holdings supports"
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"
/{recordType}/restore:
put:
is: [ validate ]
responses:
200:
body:
application/json:
type: string
400:
description: "Not supported"
body:
text/plain:
example: "Only marc-bib or marc-holdings supports"
500:
description: "Internal server error"
body:
text/plain:
example: "Internal server error"