Renamed HTTP param
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"$ref": "#/components/parameters/ConnectorType"
},
{
- "in": "query",
- "name": "ChargeBoxID",
- "description": "Charging station ID",
- "schema": {
- "type": "string"
- }
+ "$ref": "#/components/parameters/ChargingStationID"
},
{
"$ref": "#/components/parameters/IncludeDeleted"

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -1287,7 +1287,7 @@ export default class ChargingStationService {
search: filteredRequest.Search,
withNoSiteArea: filteredRequest.WithNoSiteArea,
withSite: filteredRequest.WithSite,
- chargingStationIDs: filteredRequest.ChargeBoxID ? filteredRequest.ChargeBoxID.split('|') : null,
+ chargingStationIDs: filteredRequest.ChargingStationID ? filteredRequest.ChargingStationID.split('|') : null,
connectorStatuses: filteredRequest.ConnectorStatus ? filteredRequest.ConnectorStatus.split('|') : null,
connectorTypes: filteredRequest.ConnectorType ? filteredRequest.ConnectorType.split('|') : null,
issuer: filteredRequest.Issuer,
@@ -1386,7 +1386,6 @@ export default class ChargingStationService {
return csv;
}
-
private static async getChargingStationsForQrCode(req: Request): Promise<DataResult<ChargingStation>> {
return ChargingStationService.getChargingStations(req,
['id', 'connectors.connectorId', 'siteArea.name']);

MODIFY
src/server/rest/v1/service/security/ChargingStationSecurity.ts
src/server/rest/v1/service/security/ChargingStationSecurity.ts
@@ -89,7 +89,7 @@ export default class ChargingStationSecurity {
filteredRequest.SiteAreaID = sanitize(request.SiteAreaID);
filteredRequest.ConnectorStatus = sanitize(request.ConnectorStatus);
filteredRequest.ConnectorType = sanitize(request.ConnectorType);
- filteredRequest.ChargeBoxID = sanitize(request.ChargeBoxID);
+ filteredRequest.ChargingStationID = sanitize(request.ChargingStationID);
filteredRequest.IncludeDeleted = UtilsSecurity.filterBoolean(request.IncludeDeleted);
filteredRequest.ErrorType = sanitize(request.ErrorType);
if (Utils.containsGPSCoordinates([request.LocLongitude, request.LocLatitude])) {

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
@@ -35,7 +35,7 @@ export interface HttpChargingStationsRequest extends HttpDatabaseRequest {
WithNoSiteArea?: boolean;
ConnectorStatus?: string;
ConnectorType?: string;
- ChargeBoxID?: string;
+ ChargingStationID?: string;
SiteID?: string;
WithSite?: boolean;
SiteAreaID?: string;

Renamed HTTP param