forward with site and withsite Id
MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-get.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-get.json
},
"ProjectFields": {
"$ref": "common.json#/definitions/projectFields"
+ },
+ "WithSite": {
+ "type": "boolean",
+ "sanitize": "mongo"
+ },
+ "WithSiteArea": {
+ "type": "boolean",
+ "sanitize": "mongo"
}
},
"required": [

MODIFY
src/server/rest/v1/service/ChargingStationService.ts
src/server/rest/v1/service/ChargingStationService.ts
@@ -920,8 +920,8 @@ export default class ChargingStationService {
// Check and Get Charging Station
const chargingStation = await UtilsService.checkAndGetChargingStationAuthorization(
req.tenant, req.user, filteredRequest.ID, action, null, {
- withSite: true,
- withSiteArea: true,
+ withSite: filteredRequest.WithSite,
+ withSiteArea: filteredRequest.WithSiteArea,
withLogo: true
}, true);
res.json(chargingStation);

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
@@ -83,6 +83,8 @@ export interface HttpChargingStationParamsUpdateRequest {
export interface HttpChargingStationRequest extends HttpByIDRequest {
ID: string;
+ WithSite?: boolean,
+ WithSiteArea?: boolean;
}
export interface HttpChargingStationOcppRequest {

forward with site and withsite Id