/
ledger-rollover-budgets.raml
53 lines (48 loc) · 1.97 KB
/
ledger-rollover-budgets.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
52
53
#%RAML 1.0
title: "mod-finance"
baseUri: https://github.com/folio-org/mod-finance
version: v1
documentation:
- title: mod-finance (Ledger Rollover Budgets)
content: <b>APIs used to manage ledger rollover budgets.</b>
types:
errors: !include raml-util/schemas/errors.schema
ledger_fiscal_year_rollover_budget: !include acq-models/mod-finance/schemas/ledger_fiscal_year_rollover_budget.json
ledger_fiscal_year_rollover_budget-collection: !include acq-models/mod-finance/schemas/ledger_fiscal_year_rollover_budget_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-get: !include raml-util/rtypes/collection-get.raml
collection-item-get: !include raml-util/rtypes/item-collection-get.raml
/finance/ledger-rollovers-budgets:
type:
collection-get:
exampleCollection: !include acq-models/mod-finance/examples/ledger_fiscal_year_rollover_budget_collection.sample
exampleItem: !include acq-models/mod-finance/examples/ledger_fiscal_year_rollover_budget.sample
schemaCollection: ledger_fiscal_year_rollover_budget-collection
schemaItem: ledger_fiscal_year_rollover_budget
is: [validate]
get:
description: Get list of rollovers budgets
is: [
searchable:
{
description: "with valid searchable fields: for example 'budgetStatus'", example: "[\"budgetStatus\", \"Active\", \"=\"]"
},
pageable
]
/{id}:
uriParameters:
id:
description: The UUID of a rollover budgets record
type: UUID
type:
collection-item-get:
exampleItem: !include acq-models/mod-finance/examples/ledger_fiscal_year_rollover_budget.sample
schema: ledger_fiscal_year_rollover_budget
is: [validate]