Updated Update Charger Params
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
},
- "/api/chargingstations/general/parameters": {
+ "/api/chargingstations/parameters": {
"put": {
"security": [
{
"type": "object",
"properties": {
"id": {
- "type": "string"
+ "type": "string",
+ "example": ""
},
"maximumPower": {
- "type": "number"
+ "type": "number",
+ "example": 50000
},
"excludeFromSmartCharging": {
- "type": "boolean"
+ "type": "boolean",
+ "example": false
},
"forceInactive": {
- "type": "boolean"
+ "type": "boolean",
+ "example": false
},
"public": {
- "type": "boolean"
+ "type": "boolean",
+ "example": false
},
"siteAreaID": {
"type": "string",
- "example": "5abebb014bae1457eb565e85"
+ "example": ""
},
"coordinates": {
"$ref": "#/components/schemas/Address/properties/coordinates"
"coordinates": {
"type": "array",
"example": [
- 43.6121053,
- 7.016958099999999
+ 43,
+ 7
],
"items": {
"type": "integer"

MODIFY
src/server/rest/v1/router/api/ChargingStationRouter.ts
src/server/rest/v1/router/api/ChargingStationRouter.ts
@@ -161,7 +161,7 @@ export default class ChargingStationRouter {
}
protected buildRouteChargingStationUpdateParameters(): void {
- this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_PARAMETERS}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_UPDATE_PARAMETERS}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleUpdateChargingStationParams.bind(this), ServerAction.CHARGING_STATION_UPDATE_PARAMS, req, res, next);
});
}
@@ -222,5 +222,4 @@ export default class ChargingStationRouter {
await RouterUtils.handleServerAction(ChargingStationService.handleDeleteChargingProfile.bind(this), ServerAction.CHARGING_PROFILE_DELETE, req, res, next);
});
}
-
}

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -419,7 +419,8 @@ 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_PARAMETERS = 'chargingstations/general/parameters',
+
+ REST_CHARGING_STATIONS_UPDATE_PARAMETERS = 'chargingstations/parameters',
REST_CHARGING_STATIONS_POWER_LIMIT = 'chargingstations/power/limit',
REST_CHARGING_STATIONS_TRANSACTIONS = 'chargingstations/:id/transactions',
REST_CHARGING_STATIONS_IN_ERROR = 'chargingstations/status/in-error',

Updated Update Charger Params