Add limited backoffice employee QR login links
This commit is contained in:
@@ -40,6 +40,8 @@ tags:
|
||||
description: Account security and passkey management endpoints
|
||||
- name: Users
|
||||
description: User management and customer operations
|
||||
- name: Limited Backoffice
|
||||
description: Limited backoffice employee and department management
|
||||
- name: Search
|
||||
description: System-wide search endpoints
|
||||
- name: Orders
|
||||
@@ -2762,6 +2764,44 @@ paths:
|
||||
properties:
|
||||
token: {type: string}
|
||||
|
||||
/limited-backoffice/employees/{employeeId}/login-link:
|
||||
post:
|
||||
tags:
|
||||
- Limited Backoffice
|
||||
summary: Create a managed employee QR login link
|
||||
description: Create a reusable auth-token login link for an active employee managed through the limited backoffice.
|
||||
operationId: createLimitedBackofficeEmployeeLoginLink
|
||||
parameters:
|
||||
- name: employeeId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: integer
|
||||
minimum: 1
|
||||
responses:
|
||||
'200':
|
||||
description: Login link created successfully
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
employee_id:
|
||||
type: integer
|
||||
login_path:
|
||||
type: string
|
||||
example: /login/qr?token=abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890
|
||||
'400':
|
||||
$ref: '#/components/responses/BadRequest'
|
||||
'401':
|
||||
$ref: '#/components/responses/Unauthorized'
|
||||
'403':
|
||||
$ref: '#/components/responses/Forbidden'
|
||||
'404':
|
||||
$ref: '#/components/responses/NotFound'
|
||||
'409':
|
||||
$ref: '#/components/responses/Conflict'
|
||||
|
||||
# User Endpoints
|
||||
/users:
|
||||
get:
|
||||
|
||||
Reference in New Issue
Block a user