Fixed ocpp export route
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
},
- "/api/chargingstations/{id}/ocpp/parameters/export": {
+ "/api/chargingstations/ocpp/parameters/export": {
"get": {
"security": [
{
"description": "Export Charging Station OCPP Parameters as CSV file",
"parameters": [
{
- "$ref": "#/components/parameters/chargingStationID"
+ "$ref": "#/components/parameters/ChargingStationIDs"
}
],
"tags": [
"type": "string"
}
},
+ "ChargingStationIDs": {
+ "in": "query",
+ "name": "ChargingStationID",
+ "description": "Pipe separated Charging Station IDs",
+ "required": false,
+ "schema": {
+ "type": "string"
+ }
+ },
"ConnectorID": {
"in": "query",
"name": "ConnectorID",

MODIFY
src/server/rest/v1/router/api/ChargingStationRouter.ts
src/server/rest/v1/router/api/ChargingStationRouter.ts
@@ -169,7 +169,6 @@ export default class ChargingStationRouter {
protected buildRouteChargingStationExportOCPPParameters(): void {
this.router.get(`/${ServerRoute.REST_CHARGING_STATIONS_EXPORT_OCPP_PARAMETERS}`, async (req: Request, res: Response, next: NextFunction) => {
- req.query.ChargingStationID = req.params.id;
await RouterUtils.handleServerAction(ChargingStationService.handleExportChargingStationsOCPPParams.bind(this),
ServerAction.CHARGING_STATIONS_OCPP_PARAMS_EXPORT, req, res, next);
});

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -423,7 +423,7 @@ export enum ServerRoute {
REST_CHARGING_STATION_GET_OCPP_PARAMETERS = 'chargingstations/:id/ocpp/parameters',
REST_CHARGING_STATIONS_REQUEST_OCPP_PARAMETERS = 'chargingstations/ocpp/parameters',
- REST_CHARGING_STATIONS_EXPORT_OCPP_PARAMETERS = 'chargingstations/:id/ocpp/parameters/export',
+ REST_CHARGING_STATIONS_EXPORT_OCPP_PARAMETERS = 'chargingstations/ocpp/parameters/export',
REST_CHARGING_STATIONS_UPDATE_PARAMETERS = 'chargingstations/:id/parameters',
REST_CHARGING_STATIONS_POWER_LIMIT = 'chargingstations/:id/power/limit',

Fixed ocpp export route