-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathfolio-set.raml
48 lines (43 loc) · 1.29 KB
/
folio-set.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
#%RAML 1.0
title: OAI-PMH API
baseUri: https://github.com/folio-org/mod-oai-pmh
version: v3.1
protocols: [ HTTP, HTTPS ]
documentation:
- title: Set API
content: API for managing sets and filtering conditions that is used as part of metadata harvesting protocol implementation
types:
folioSet: !include schemas/dto/folioSet.json
folioSetCollection: !include schemas/dto/folioSetCollection.json
errors: !include raml-util/schemas/errors.schema
traits:
validate: !include raml-util/traits/validation.raml
pageable: !include raml-util/traits/pageable.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/oai-pmh/sets:
displayName: Sets
description: CRUD API for managing set items
type:
collection:
schemaCollection: folioSetCollection
schemaItem: folioSet
exampleCollection: !include examples/folioSetCollection.sample
exampleItem: !include examples/folioSet.sample
post:
is: [validate]
get:
is: [
pageable,
validate
]
/{id}:
displayName: Set
description: Get, Delete or Update a specific set item
type:
collection-item:
schema: folioSet
exampleItem: !include examples/folioSet.sample
put:
is: [validate]