-
Notifications
You must be signed in to change notification settings - Fork 7
/
budget_expense_class.raml
51 lines (45 loc) · 1.79 KB
/
budget_expense_class.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
#%RAML 1.0
title: "mod-finance-storage"
baseUri: https://github.com/folio-org/mod-finance-storage
version: v1
documentation:
- title: mod-finance-storage (Budget expense classes)
content: <b>CRUD APIs used to manage budget-expense-class records.</b>
types:
errors: !include raml-util/schemas/errors.schema
budget-expense-class: !include acq-models/mod-finance/schemas/budget_expense_class.json
budget-expense-class-collection: !include acq-models/mod-finance/schemas/budget_expense_class_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}$
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
/finance-storage/budget-expense-classes:
type:
collection:
exampleCollection: !include acq-models/mod-finance/examples/budget_expense_class_collection.sample
exampleItem: !include acq-models/mod-finance/examples/budget_expense_class.sample
schemaCollection: budget-expense-class-collection
schemaItem: budget-expense-class
is: [validate]
get:
description: Get list of budget-expense-classes
is: [
searchable: {description: "with valid searchable fields: e.g.", example: "[\"name\", \"Electronic\", \"=\"]"},
pageable
]
/{id}:
uriParameters:
id:
description: The UUID of a budget-expense-class
type: UUID
type:
collection-item:
exampleItem: !include acq-models/mod-finance/examples/budget_expense_class.sample
schema: budget-expense-class
is: [validate]