Fixed routes idempotency
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
},
- "/api/chargingstations/in-error": {
+ "/api/chargingstations/status/in-error": {
"get": {
"security": [
{
}
}
},
- "/api/chargingstations/export": {
+ "/api/chargingstations/action/export": {
"get": {
"security": [
{

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -428,8 +428,8 @@ export enum ServerRoute {
REST_CHARGING_STATIONS_UPDATE_PARAMETERS = 'chargingstations/:id/parameters',
REST_CHARGING_STATIONS_POWER_LIMIT = 'chargingstations/:id/power/limit',
REST_CHARGING_STATIONS_TRANSACTIONS = 'chargingstations/:id/transactions',
- REST_CHARGING_STATIONS_IN_ERROR = 'chargingstations/in-error',
- REST_CHARGING_STATIONS_EXPORT = 'chargingstations/export',
+ REST_CHARGING_STATIONS_IN_ERROR = 'chargingstations/status/in-error',
+ REST_CHARGING_STATIONS_EXPORT = 'chargingstations/action/export',
REST_CHARGING_STATION_CHECK_SMART_CHARGING_CONNECTION = 'chargingstations/smartcharging/connection/check',

MODIFY
test/api/client/ChargingStationApi.ts
test/api/client/ChargingStationApi.ts
@@ -21,7 +21,7 @@ export default class ChargingStationApi extends CrudApi {
}
public async readAllInError(params, paging = TestConstants.DEFAULT_PAGING, ordering = TestConstants.DEFAULT_ORDERING) {
- return super.readAll(params, paging, ordering, '/v1/api/chargingstations/in-error');
+ return super.readAll(params, paging, ordering, '/v1/api/chargingstations/status/in-error');
}
public async update(data) {

Fixed routes idempotency