Added 403 error in OAS file
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"404": {
"description": "Firmware not found"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
}
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
"401": {
"$ref": "#/components/responses/UnauthorizedError"
},
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
"500": {
"$ref": "#/components/responses/500BackendError"
},
},
"responses": {
"UnauthorizedError": {
- "description": "Access token is missing or invalid"
+ "description": "Unauthorized access to the API"
+ },
+ "ForbiddenError": {
+ "description": "Not authorized to execute this operation"
},
"500BackendError": {
"description": "Unexpected Backend error, checks the Logs"

Added 403 error in OAS file