* Renamed user limit API to app limit API

* Added post warning limit

* Added tests

* Fixed types

* Renamed AppLimits to ServerLimits

* Fixed tests and review fixes

* Updated generated code

* Updated server i18n

* Fixed TestCreateUserOrGuest test

* Exclude deleted posts from post count for liims

* Reduced limits for ease of testing

* Restored original limts
Этот коммит содержится в:
Harshil Sharma
2024-04-18 11:50:30 +05:30
коммит произвёл GitHub
родитель 4571c6e3a3
Коммит b4a1b33d39
31 изменённых файлов: 448 добавлений и 153 удалений

Просмотреть файл

@@ -3637,7 +3637,7 @@ components:
state:
description: The current state of the installation
type: string
UserLimits:
ServerLimits:
type: object
properties:
maxUsersLimit:

Просмотреть файл

@@ -1,25 +1,25 @@
/api/v4/limits/users:
/api/v4/limits/server:
get:
tags:
- users
summary: Gets the user limits for the server
summary: Gets the server limits for the server
description: >
Gets the user limits for the server
Gets the server limits for the server
##### Permissions
Requires `sysconsole_read_user_management_users`.
operationId: getUserLimits
operationId: GetServerLimits
responses:
"200":
description: User limits for server
description: App limits for server
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/UserLimits"
$ref: "#/components/schemas/ServerLimits"
"400":
$ref: "#/components/responses/BadRequest"
"401":