Merge pull request #12278 from lafirest/fix/limit

fix(api): adjust the maximum limit of page query to 10,000
This commit is contained in:
lafirest 2024-01-10 09:42:46 +08:00 committed by GitHub
commit 3d7264c9ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,7 @@
{application, emqx_dashboard, [
{description, "EMQX Web Dashboard"},
% strict semver, bump manually!
{vsn, "5.0.31"},
{vsn, "5.0.32"},
{modules, []},
{registered, [emqx_dashboard_sup]},
{applications, [

View File

@ -83,7 +83,7 @@
-define(SPECIAL_LANG_MSGID, <<"$msgid">>).
-define(MAX_ROW_LIMIT, 1000).
-define(MAX_ROW_LIMIT, 10000).
-define(DEFAULT_ROW, 100).
-type request() :: #{bindings => map(), query_string => map(), body => map()}.

View File

@ -140,13 +140,13 @@ t_public_ref(_Config) ->
ExpectRefs = [
#{
<<"public.limit">> => #{
description => <<"Results per page(max 1000)">>,
description => <<"Results per page(max 10000)">>,
in => query,
name => limit,
example => 50,
schema => #{
default => 100,
maximum => 1000,
maximum => 10000,
minimum => 1,
type => integer
}

View File

@ -0,0 +1 @@
In the REST API, the maximum limit of page queries is adjusted to 10,000.