Added billing getInvoice/downloadInvoice endpoint doc
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
}
}
}
+ },
+ "/api/invoices/{id}": {
+ "get": {
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "description": "Get Invoice by id",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/invoiceID"
+ }
+ ],
+ "tags": [
+ "Billing"
+ ],
+ "responses": {
+ "200": {
+ "description": "Return invoice",
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/Invoice"
+ }
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "500": {
+ "$ref": "#/components/responses/BackendError"
+ },
+ "550": {
+ "$ref": "#/components/responses/ResourceDoesNotExists"
+ }
+ }
+ }
+ },
+ "/api/invoices/{id}/download": {
+ "get": {
+ "security": [
+ {
+ "bearerAuth": []
+ }
+ ],
+ "description": "Download Invoice as PDF",
+ "parameters": [
+ {
+ "$ref": "#/components/parameters/invoiceID"
+ }
+ ],
+ "tags": [
+ "Billing"
+ ],
+ "responses": {
+ "200": {
+ "description": "Return invoice as PDF",
+ "content": {
+ "application/pdf": {
+ }
+ }
+ },
+ "401": {
+ "$ref": "#/components/responses/UnauthorizedError"
+ },
+ "403": {
+ "$ref": "#/components/responses/ForbiddenError"
+ },
+ "500": {
+ "$ref": "#/components/responses/BackendError"
+ },
+ "550": {
+ "$ref": "#/components/responses/ResourceDoesNotExists"
+ }
+ }
+ }
}
},
"components": {
"schema": {
"type": "string"
}
+ },
+ "invoiceID": {
+ "in": "path",
+ "name": "id",
+ "description": "Invoice ID",
+ "required": true,
+ "schema": {
+ "type": "string"
+ }
}
}
}

Added billing getInvoice/downloadInvoice endpoint doc