...
path -: endpoint to the portal-backend layer which download the dataset file - the path can be both parameterized and non parameterized . Portal backend populates the parameters using logged in user context details and downloads the respective file.
...
Proposed Solution
API to get Metadata + Data Files
There is a need to create API in report service that will provide access to the meta data as well as the report data files that are used to generate the reports in the 'Admin dashboards' page on the Sunbird portal with certain access controls.
...
Code Block | ||
---|---|---|
| ||
interface IAccessPath { organisation: Array<string> | string; role: Array<string> | string; tenant: Array<string> | string; channel: Array<string> | string; group: Array<string> | string; userType: Array<string> | string; framework: Array<string> | string; isSuperAdmin: Array<string> | string; board: Array<string> | string; userId: Array<string> | string; userLocation: { state: Array<string> | string; district: Array<string> | string; block: Array<string> | string; }; ...anyOtherAttribute: any } |
Resources
...
API to get list of Reports
This API is associated with Searching Reports on the Sunbird Platform.
METHOD - POST
URL - /report/list
Expand | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
Example of Request payload with visibility and accessPath
Success Response - Status Code 200
Error Response - Status code 500
|