router for DataTransfer
MODIFY
src/server/rest/v1/router/api/ChargingStationRouter.ts
src/server/rest/v1/router/api/ChargingStationRouter.ts
@@ -84,6 +84,13 @@ export default class ChargingStationRouter {
});
}
+ protected buildRouteChargingStationTriggerDataTransfer(): void {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_DATA_TRANSFER}`, async (req: Request, res: Response, next: NextFunction) => {
+ req.body.chargingStationID = req.params.id;
+ await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_DATA_TRANSFER, req, res, next);
+ });
+ }
+
protected buildRouteChargingStationRetrieveConfiguration(): void {
this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_RETRIEVE_CONFIGURATION}`, async (req: Request, res: Response, next: NextFunction) => {
req.body.chargingStationID = req.params.id;

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -455,6 +455,7 @@ export enum ServerRoute {
REST_CHARGING_STATIONS_RESET = 'charging-stations/:id/reset',
REST_CHARGING_STATIONS_CACHE_CLEAR = 'charging-stations/:id/cache/clear',
+ REST_CHARGING_STATIONS_DATA_TRANSFER = 'charging-stations/:id/dataTransfer',
REST_CHARGING_STATIONS_RETRIEVE_CONFIGURATION = 'charging-stations/:id/configuration/retrieve',
REST_CHARGING_STATIONS_CHANGE_CONFIGURATION = 'charging-stations/:id/configuration',
REST_CHARGING_STATIONS_REMOTE_START = 'charging-stations/:id/remote/start',

router for DataTransfer