Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
#%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
language: !include raml-storage/raml-util/traits/language.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"