-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MODFISTO-500] - Implement endpoint to return all finance data for FY (…
…#485) * [MODFISTO-500] - Implement endpoint to return all finance data for FY * [MODFISTO-500] - Implement endpoint to return all finance data for FY * add fiscalYearId field * Add extra fields * change name to avoid collision * fix field name
- Loading branch information
Showing
4 changed files
with
174 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"fiscalYearId": "123e4567-e89b-12d3-a456-426614174004", | ||
"fiscalYearCode": "FY2023", | ||
"fundId": "123e4567-e89b-12d3-a456-426614174000", | ||
"fundCode": "FND001", | ||
"fundName": "General Fund", | ||
"fundDescription": "This fund is used for general purposes.", | ||
"fundStatus": "Active", | ||
"fundTags": { | ||
"tagList": ["Education", "Research"] | ||
}, | ||
"budgetId": "123e4567-e89b-12d3-a456-426614174001", | ||
"budgetName": "Annual Budget", | ||
"budgetStatus": "Active", | ||
"budgetInitialAllocation": 1000000, | ||
"budgetCurrentAllocation": 950000, | ||
"budgetAllowableExpenditure": 80, | ||
"budgetAllowableEncumbrance": 90 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"fyFinanceData": [ | ||
{ | ||
"fiscalYearId": "123e4567-e89b-12d3-a456-426614174004", | ||
"fiscalYearCode": "FY2023", | ||
"fundId": "123e4567-e89b-12d3-a456-426614174000", | ||
"fundCode": "FND001", | ||
"fundName": "General Fund", | ||
"fundDescription": "This fund is used for general purposes.", | ||
"fundStatus": "Active", | ||
"fundTags": { | ||
"tagList": ["Education", "Research"] | ||
}, | ||
"budgetId": "123e4567-e89b-12d3-a456-426614174001", | ||
"budgetName": "Annual Budget", | ||
"budgetStatus": "Active", | ||
"budgetInitialAllocation": 1000000, | ||
"budgetCurrentAllocation": 950000, | ||
"budgetAllowableExpenditure": 80, | ||
"budgetAllowableEncumbrance": 90 | ||
}, | ||
{ | ||
"fiscalYearId": "123e4567-e89b-12d3-a456-426614174005", | ||
"fiscalYearCode": "FY2023", | ||
"fundId": "123e4567-e89b-12d3-a456-426614174002", | ||
"fundCode": "FND002", | ||
"fundName": "Research Fund", | ||
"fundDescription": "This fund is used for research purposes.", | ||
"fundStatus": "Frozen", | ||
"fundTags": { | ||
"tagList": ["Science", "Innovation"] | ||
}, | ||
"budgetId": "123e4567-e89b-12d3-a456-426614174003", | ||
"budgetName": "Research Budget", | ||
"budgetStatus": "Planned", | ||
"budgetInitialAllocation": 500000, | ||
"budgetCurrentAllocation": 450000, | ||
"budgetAllowableExpenditure": 70, | ||
"budgetAllowableEncumbrance": 85 | ||
} | ||
], | ||
"totalRecords": 2 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "Finance data for a fiscal year", | ||
"type": "object", | ||
"javaName": "FyFinanceData", | ||
"properties": { | ||
"fiscalYearId": { | ||
"description": "UUID of the fiscal year", | ||
"$ref": "../../common/schemas/uuid.json" | ||
}, | ||
"fiscalYearCode": { | ||
"description": "The code of the fiscal year", | ||
"type": "string" | ||
}, | ||
"fundId": { | ||
"description": "Fund UUID", | ||
"$ref": "../../common/schemas/uuid.json" | ||
}, | ||
"fundCode": { | ||
"description": "A unique code associated with the fund", | ||
"$ref": "../../common/schemas/fund_code.json" | ||
}, | ||
"fundName": { | ||
"description": "The name of this fund", | ||
"type": "string" | ||
}, | ||
"fundDescription": { | ||
"description": "A description of this fund", | ||
"type": "string" | ||
}, | ||
"fundStatus": { | ||
"description": "The current status of this fund", | ||
"type": "string", | ||
"enum": [ | ||
"Active", | ||
"Frozen", | ||
"Inactive" | ||
] | ||
}, | ||
"fundTags": { | ||
"type": "object", | ||
"description": "Arbitrary tags associated with this fund", | ||
"$ref": "../../../raml-util/schemas/tags.schema" | ||
}, | ||
"budgetId": { | ||
"description": "UUID of this budget", | ||
"$ref": "../../common/schemas/uuid.json" | ||
}, | ||
"budgetName": { | ||
"description": "The name of the budget", | ||
"type": "string" | ||
}, | ||
"budgetStatus": { | ||
"description": "The status of the budget", | ||
"type": "string", | ||
"enum": [ | ||
"Active", | ||
"Frozen", | ||
"Inactive", | ||
"Planned", | ||
"Closed" | ||
] | ||
}, | ||
"budgetInitialAllocation": { | ||
"default": 0, | ||
"description": "The amount of the first allocation made to this budget", | ||
"type": "number" | ||
}, | ||
"budgetCurrentAllocation": { | ||
"description": "The current allocation amount for this budget", | ||
"type": "number" | ||
}, | ||
"budgetAllowableExpenditure": { | ||
"description": "The expenditure percentage limit for this budget", | ||
"type": "number" | ||
}, | ||
"budgetAllowableEncumbrance": { | ||
"description": "The encumbrance percentage limit for this budget", | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ | ||
"fiscalYearCode", | ||
"fiscalYearId", | ||
"fundId" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"description": "A collection of fiscal year finance data", | ||
"type": "object", | ||
"properties": { | ||
"fyFinanceData": { | ||
"description": "The list of fiscal year finance data objects contained in this collection", | ||
"type": "array", | ||
"id": "fyFinanceData", | ||
"items": { | ||
"type": "object", | ||
"$ref": "fy_finance_data.json" | ||
} | ||
}, | ||
"totalRecords": { | ||
"description": "The number of objects contained in this collection", | ||
"type": "integer" | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"fyFinanceData", | ||
"totalRecords" | ||
] | ||
} |