SudoSOS Back-end API / transaction-summaries / TransactionSummaryController
Class: TransactionSummaryController ​
The BaseController class is responsible for:
- Storing route definitions.
- Generating router objects based on the policy.
Extends ​
Constructors ​
Constructor ​
ts
new TransactionSummaryController(options): TransactionSummaryController;Parameters ​
| Parameter | Type |
|---|---|
options | BaseControllerOptions |
Returns ​
TransactionSummaryController
Overrides ​
Properties ​
| Property | Modifier | Type | Description | Inherited from |
|---|---|---|---|---|
roleManager | protected | RoleManager | A reference to the role manager passed in the base controller options. | BaseController.roleManager |
specification | public | SwaggerSpecification | A reference to the swagger specification passed in the base controller options. | BaseController.specification |
Methods ​
getPolicy() ​
ts
getPolicy(): Policy;Gets the policy defined by child classes. This policy includes all routes that the controller accepts, the authorization middleware, and the final handler function for every route.
Returns ​
The policy of this controller.
Overrides ​
getRouter() ​
ts
getRouter(): Router;Returns ​
Router
the router used by this controller.
Inherited from ​
getSingleContainerSummary() ​
ts
getSingleContainerSummary(req, res): Promise<void>;GET /transactions/summary/container/
Parameters ​
| Parameter | Type |
|---|---|
req | RequestWithToken |
res | Response |
Returns ​
Promise<void>
200 - The requested summary
Operation Id ​
getSingleContainerSummary
Tags ​
transactionSummaries - Operations of the transaction summary controller
Security ​
JWT
Deprecated ​
- Hotfix for Feestcafé "De BAC" - 70s Disco Edition. Do not use for anything else. https://github.com/GEWIS/sudosos-backend/pull/415