diff --git a/openapi.yaml b/openapi.yaml index de5e1d94..a5406645 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -289,6 +289,32 @@ paths: '400': $ref: '#/components/responses/BadRequest' + /su/intimidate: + post: + tags: + - Authentication + summary: Intimidate a user + description: Create an authentication token for another user (Superuser only) + operationId: suIntimidate + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [user_id] + properties: + user_id: {type: integer} + responses: + '200': + description: Success + content: + application/json: + schema: + type: object + properties: + token: {type: string} + # User Endpoints /users: get: @@ -1782,6 +1808,15 @@ paths: summary: Get invoicing periods description: Retrieve invoicing periods for superusers operationId: getInvoicingPeriods + parameters: + - name: dateFrom + in: query + required: true + schema: {type: string, format: date} + - name: dateTo + in: query + required: true + schema: {type: string, format: date} responses: '200': description: Invoicing periods retrieved successfully @@ -1793,6 +1828,15 @@ paths: summary: Get fixed pricing distribution description: Get invoicing distribution for fixed pricing items operationId: getInvoicingFixedPricingDistribution + parameters: + - name: dateFrom + in: query + required: true + schema: {type: string, format: date} + - name: dateTo + in: query + required: true + schema: {type: string, format: date} responses: '200': description: Fixed pricing distribution retrieved successfully @@ -1804,6 +1848,15 @@ paths: summary: Get wash subscriptions distribution description: Get invoicing distribution for wash subscriptions operationId: getInvoicingWashSubscriptionsDistribution + parameters: + - name: dateFrom + in: query + required: true + schema: {type: string, format: date} + - name: dateTo + in: query + required: true + schema: {type: string, format: date} responses: '200': description: Wash subscriptions distribution retrieved successfully @@ -2563,6 +2616,21 @@ paths: '200': description: Department plate scanners retrieved successfully + /relay/button/press/post: + get: + tags: + - Plate Scans + summary: Add button press + operationId: addButtonPress + parameters: + - name: token + in: query + required: true + schema: {type: string} + responses: + '201': + description: Button press recorded + # Module - e-conomic Endpoints /economic/customers/import: post: @@ -2788,6 +2856,35 @@ paths: '200': description: Success + # Module - Backup Endpoints + /modules/backup/backups: + get: + tags: + - Modules + summary: List backup modules + operationId: listBackupModules + responses: + '200': + description: Success + post: + tags: + - Modules + summary: Create backup module + operationId: createBackupModule + requestBody: + required: true + content: + application/json: + schema: + type: object + required: [name, description] + properties: + name: {type: string} + description: {type: string} + responses: + '200': + description: Success + # Module - XLVask Endpoints /modules/xlvask/usageLog: get: @@ -2895,8 +2992,9 @@ paths: description: Search for company information in VirkData operationId: virkdataSearch parameters: - - name: cvr + - name: search in: query + required: true schema: type: string responses: