Charge charging station verbs from POST to PUT
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
},
"/api/chargingstations/reset": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/cache/clear": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/configuration/retrieve": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/remote/start": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/remote/stop": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/connectors/unlock": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/compositeschedule": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/diagnostics": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/firmware/update": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []
}
},
"/api/chargingstations/availability/change": {
- "post": {
+ "put": {
"security": [
{
"bearerAuth": []

MODIFY
src/server/rest/v1/router/api/ChargingStationRouter.ts
src/server/rest/v1/router/api/ChargingStationRouter.ts
@@ -65,61 +65,61 @@ export default class ChargingStationRouter {
}
protected buildRouteChargingStationReset(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_RESET}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_RESET}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_RESET, req, res, next);
});
}
protected buildRouteChargingStationClearCache(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_CACHE_CLEAR}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_CACHE_CLEAR}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_CLEAR_CACHE, req, res, next);
});
}
protected buildRouteChargingStationRetrieveConfiguration(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_RETRIEVE_CONFIGURATION}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_RETRIEVE_CONFIGURATION}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_GET_CONFIGURATION, req, res, next);
});
}
protected buildRouteChargingStationRemoteStart(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_REMOTE_START}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_REMOTE_START}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_REMOTE_START_TRANSACTION, req, res, next);
});
}
protected buildRouteChargingStationRemoteStop(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_REMOTE_STOP}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_REMOTE_STOP}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_REMOTE_STOP_TRANSACTION, req, res, next);
});
}
protected buildRouteChargingStationUnlockConnector(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_UNLOCK_CONNECTOR}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_UNLOCK_CONNECTOR}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_UNLOCK_CONNECTOR, req, res, next);
});
}
protected buildRouteChargingStationGetCompositeSchedule(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_GET_COMPOSITE_SCHEDULE}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_GET_COMPOSITE_SCHEDULE}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_GET_COMPOSITE_SCHEDULE, req, res, next);
});
}
protected buildRouteChargingStationGetDiagnostics(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_GET_DIAGNOSTICS}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_GET_DIAGNOSTICS}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_GET_DIAGNOSTICS, req, res, next);
});
}
protected buildRouteChargingStationUpdateFirmware(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_FIRMWARE_UPDATE}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_FIRMWARE_UPDATE}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_UPDATE_FIRMWARE, req, res, next);
});
}
protected buildRouteChargingStationChangeAvailability(): void {
- this.router.post(`/${ServerRoute.REST_CHARGING_STATIONS_CHANGE_AVAILABILITY}`, async (req: Request, res: Response, next: NextFunction) => {
+ this.router.put(`/${ServerRoute.REST_CHARGING_STATIONS_CHANGE_AVAILABILITY}`, async (req: Request, res: Response, next: NextFunction) => {
await RouterUtils.handleServerAction(ChargingStationService.handleAction.bind(this), ServerAction.CHARGING_STATION_CHANGE_AVAILABILITY, req, res, next);
});
}

Charge charging station verbs from POST to PUT