Fixed doc duplicated entry
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
{
"name": "OCPI",
"description": "OCPI API"
+ },
+ {
+ "name": "OICP",
+ "description": "OICP API"
}
],
"paths": {
}
}
},
- "/api/assets/{id}/consumptions": {
- "post": {
- "security": [
- {
- "bearerAuth": []
- }
- ],
- "description": "Push latest asset consumption",
- "parameters": [
- {
- "$ref": "#/components/parameters/assetID"
- }
- ],
- "tags": [
- "Assets"
- ],
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/AssetConsumption"
- }
- }
- }
- },
- "responses": {
- "201": {
- "description": "Asset consumption created successfully",
- "content": {
- "application/json": {
- "example": {
- "consumption": "###",
- "status": "Success"
- }
- }
- }
- },
- "401": {
- "$ref": "#/components/responses/UnauthorizedError"
- },
- "403": {
- "$ref": "#/components/responses/ForbiddenError"
- },
- "500": {
- "$ref": "#/components/responses/BackendError"
- },
- "550": {
- "description": "Asset does not exist"
- }
- }
- }
- },
"/api/charging-profiles": {
"get": {
"security": [
"$ref": "#/components/responses/ResourceDoesNotExists"
}
}
+ },
+ "post": {
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "description": "Push latest asset consumption",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/assetID"
+ }
+ ],
+ "tags": [
+ "Assets"
+ ],
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/AssetConsumption"
+ }
+ }
+ }
+ },
+ "responses": {
+ "201": {
+ "description": "Asset consumption created successfully",
+ "content": {
+ "application/json": {
+ "example": {
+ "consumption": "###",
+ "status": "Success"
+ }
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "500": {
+ "$ref": "#/components/responses/BackendError"
+ },
+ "550": {
+ "description": "Asset does not exist"
+ }
+ }
}
},
"/api/assets/{id}/image": {

Fixed doc duplicated entry