Aligned documentation
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"$ref": "#/components/parameters/EndDateTime"
},
{
- "$ref": "#/components/parameters/ChargeBoxIDs"
+ "$ref": "#/components/parameters/ChargingStationIDs"
},
{
"$ref": "#/components/parameters/ConnectorIDs"
"schema": {
"type": "object",
"properties": {
- "chargeBoxID": {
+ "chargingStationID": {
"type": "string",
"example": ""
},
}
},
"required": [
- "chargeBoxID",
+ "chargingStationID",
"forceUpdateOCPPParamsFromTemplate"
]
}
}
},
"schemas": {
- "ocppChargeBoxID": {
- "type": "string",
- "description": "The Charging Station ID",
- "example": ""
- },
"Tenant": {
"type": "object",
"required": [
"type": "string"
}
},
- "ChargeBoxIDs": {
- "in": "query",
- "name": "ChargeBoxID",
- "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
@@ -197,7 +197,7 @@ export default class ChargingStationRouter {
protected buildRouteChargingStationTransactions(): void {
this.router.get(`/${ServerRoute.REST_CHARGING_STATIONS_TRANSACTIONS}`, async (req: Request, res: Response, next: NextFunction) => {
- req.query.chargingStationID = req.params.id;
+ req.query.ChargingStationID = req.params.id;
await RouterUtils.handleServerAction(TransactionService.handleGetChargingStationTransactions.bind(this), ServerAction.CHARGING_STATION_TRANSACTIONS, req, res, next);
});
}

MODIFY
test/api/client/ChargingStationApi.ts
test/api/client/ChargingStationApi.ts
@@ -50,7 +50,7 @@ export default class ChargingStationApi extends CrudApi {
}
public async remoteStartTransaction(data) {
- return super.update(data, `/v1/api/${ServerRoute.REST_CHARGING_STATIONS}/${data.chargeBoxID}/remote/start`);
+ return super.update(data, `/v1/api/${ServerRoute.REST_CHARGING_STATIONS}/${data.chargingStationID}/remote/start`);
}
public async checkConnector(chargingStation, connectorId, connectorData) {

Aligned documentation