refactor(user): refactor api

This commit is contained in:
Vyacheslav1557 2025-03-28 16:28:49 +05:00
parent bf3233f7b8
commit 5c14d329bd

View file

@ -162,6 +162,18 @@ paths:
content: { } content: { }
components: components:
schemas: schemas:
Pagination:
type: object
required:
- page
- total
properties:
page:
type: integer
format: int32
total:
type: integer
format: int32
CreateUserRequest: CreateUserRequest:
type: object type: object
required: required:
@ -260,19 +272,14 @@ components:
type: object type: object
required: required:
- users - users
- page - pagination
- max_page
properties: properties:
users: users:
type: array type: array
items: items:
$ref: '#/components/schemas/User' $ref: '#/components/schemas/User'
page: pagination:
type: integer $ref: '#/components/schemas/Pagination'
format: int32
max_page:
type: integer
format: int32
securitySchemes: securitySchemes:
bearerAuth: bearerAuth:
type: http type: http