-
Notifications
You must be signed in to change notification settings - Fork 2
/
groups.raml
72 lines (66 loc) · 2.43 KB
/
groups.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#%RAML 1.0
title: Finance group
version: v1
protocols: [ HTTP, HTTPS ]
baseUri: https://github.com/folio-org/mod-finance
documentation:
- title: Group API
content: This documents the API calls that can be made to manage groups
types:
group: !include acq-models/mod-finance/schemas/group.json
groupCollection: !include acq-models/mod-finance/schemas/group_collection.json
groupExpenseClassTotalsCollection: !include acq-models/mod-finance/schemas/group_expense_class_totals_collection.json
errors: !include raml-util/schemas/errors.schema
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:
validate: !include raml-util/traits/validation.raml
pageable: !include raml-util/traits/pageable.raml
searchable: !include raml-util/traits/searchable.raml
resourceTypes:
collection: !include raml-util/rtypes/collection-with-json-response.raml
collection-item: !include raml-util/rtypes/item-collection-with-json-response.raml
collection-get: !include raml-util/rtypes/collection-get-with-json-response.raml
/finance/groups:
displayName: Finance groups
description: Finance groups APIs
type:
collection:
schemaCollection: groupCollection
schemaItem: group
exampleCollection: !include acq-models/mod-finance/examples/group_collection.sample
exampleItem: !include acq-models/mod-finance/examples/group.sample
post:
is: [validate]
get:
is: [
pageable,
searchable: {description: "with valid searchable fields: for example code", example: "[\"code\", \"MEDGRANT\", \"=\"]"}
]
/{id}:
uriParameters:
id:
description: The UUID of a group
type: UUID
displayName: Group
description: Get, Delete or Update a specific group
type:
collection-item:
schema: group
exampleItem: !include acq-models/mod-finance/examples/group.sample
put:
is: [validate]
/expense-classes-totals:
displayName: Expense classes totals
description: Get expense classes totals within a given group
type:
collection-get:
exampleCollection: !include acq-models/mod-finance/examples/group_expense_class_totals_collection.sample
schemaCollection: groupExpenseClassTotalsCollection
get:
queryParameters:
fiscalYearId:
description: The UUID of a fiscal year
type: UUID
required: true