Allow params for DataTransfer
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
},
+ "/api/charging-stations/{id}/data/transfer": {
+ "put": {
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "description": "Trigger Data Transfer",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/chargingStationID"
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "args": {
+ "type": "object",
+ "properties": {
+ "vendorId": {
+ "type": "string",
+ "description": "Mandatory. Vendor of the charging station.",
+ "example": []
+ },
+ "messageId": {
+ "type": "string",
+ "description": "Optional. Message to send.",
+ "example": []
+ },
+ "data": {
+ "type": "string",
+ "description": "Optional. Data to send.",
+ "example": []
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": [
+ "Charging Stations"
+ ],
+ "responses": {
+ "200": {
+ "description": "Data Transfer has been successfully executed",
+ "content": {
+ "application/json": {
+ "schema": {
+ "type": "object",
+ "properties": {
+ "status": {
+ "type": "string"
+ }
+ }
+ },
+ "examples": {
+ "accepted": {
+ "summary": "Accepted",
+ "value": {
+ "status": "Accepted"
+ }
+ },
+ "rejected": {
+ "summary": "Rejected",
+ "value": {
+ "status": "Rejected"
+ }
+ }
+ }
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "500": {
+ "$ref": "#/components/responses/BackendError"
+ }
+ }
+ }
+ },
"/api/charging-stations/{id}/configuration/retrieve": {
"put": {
"security": [

MODIFY
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-action.json
src/assets/server/rest/v1/schemas/chargingstation/chargingstation-action.json
},
"csChargingProfile": {
"$ref": "chargingstation.json#/definitions/chargingProfile"
+ },
+ "vendorId": {
+ "type": "string",
+ "sanitize": "mongo"
+ },
+ "messageId": {
+ "type": "string",
+ "sanitize": "mongo"
+ },
+ "data": {
+ "type": "string",
+ "sanitize": "mongo"
}
}
},

Allow params for DataTransfer