-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathtitles.raml
More file actions
74 lines (68 loc) · 2.24 KB
/
Copy pathtitles.raml
File metadata and controls
74 lines (68 loc) · 2.24 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
73
74
#%RAML 1.0
title: "Titles"
baseUri: https://github.com/folio-org/mod-orders
version: v1.0
documentation:
- title: Titles
content: <b>CRUD API to manage Titles.</b>
types:
title: !include acq-models/mod-orders-storage/schemas/title.json
title_collection: !include acq-models/mod-orders-storage/schemas/title_collection.json
UUID:
type: string
pattern: ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$
# workaround to prevent api-lint errors for FQM vendor extensions
# see https://github.com/folio-org/fqm-tools/blob/main/docs/generation/field-schema.md#raml-validation-errors
annotationTypes:
fqm-essential:
type: boolean
fqm-visibility:
type: string
fqm-visible-by-default:
type: boolean
fqm-value-getter:
type: string
traits:
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/orders/titles:
type:
collection:
exampleCollection: !include acq-models/mod-orders-storage/examples/title_collection.sample
exampleItem: !include acq-models/mod-orders-storage/examples/title_post.sample
schemaCollection: title_collection
schemaItem: title
get:
description: Get list of titles
is: [
searchable: {description: "with valid searchable fields: for example title", example: "[\"title\", \"TITLE\", \"=\"]"},
pageable
]
/{id}:
uriParameters:
id:
description: The UUID of a Title
type: UUID
type:
collection-item:
exampleItem: !include acq-models/mod-orders-storage/examples/title_get.sample
schema: title
delete:
description: Delete a title record
queryParameters:
deleteHoldings:
displayName: The associated holdings should be removed
type: string
description: The associated holdings should be removed
example: "true"
required: false
responses:
204:
description: Title deleted
404:
description: Title not found
500:
description: Internal server error