-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathnature-of-content-term.raml
More file actions
47 lines (41 loc) · 1.55 KB
/
nature-of-content-term.raml
File metadata and controls
47 lines (41 loc) · 1.55 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
#%RAML 1.0
title: Nature of content terms API
version: v1.0
protocols: [ HTTP, HTTPS ]
baseUri: http://github.com/org/folio/mod-inventory-storage
documentation:
- title: Nature of content term API
content: This documents the API calls that can be made to query and manage nature-of-content terms of the system
types:
natureOfContentTerm: !include schemas/nature-of-content-terms/natureofcontentterm.json
natureOfContentTerms: !include schemas/nature-of-content-terms/natureofcontentterms.json
errors: !include raml-util/schemas/errors.schema
traits:
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
validate: !include raml-util/traits/validation.raml
resourceTypes:
collection: !include raml-util/rtypes/collection.raml
collection-item: !include raml-util/rtypes/item-collection.raml
/nature-of-content-terms:
type:
collection:
exampleCollection: !include examples/natureofcontentterms.json
exampleItem: !include examples/natureofcontentterm.json
schemaCollection: natureOfContentTerms
schemaItem: natureOfContentTerm
get:
is: [
searchable: {description: "with valid searchable fields", example: "name=aaa"},
pageable
]
description: Return a list of nature-of-content terms
post:
description: Create a new nature-of-content term
is: [validate]
/{id}:
description: "Pass in the nature-of-content term id"
type:
collection-item:
exampleItem: !include examples/natureofcontentterm.json
schema: natureOfContentTerm