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:
commit
3d7264c9ef
|
@ -2,7 +2,7 @@
|
||||||
{application, emqx_dashboard, [
|
{application, emqx_dashboard, [
|
||||||
{description, "EMQX Web Dashboard"},
|
{description, "EMQX Web Dashboard"},
|
||||||
% strict semver, bump manually!
|
% strict semver, bump manually!
|
||||||
{vsn, "5.0.31"},
|
{vsn, "5.0.32"},
|
||||||
{modules, []},
|
{modules, []},
|
||||||
{registered, [emqx_dashboard_sup]},
|
{registered, [emqx_dashboard_sup]},
|
||||||
{applications, [
|
{applications, [
|
||||||
|
|
|
@ -83,7 +83,7 @@
|
||||||
|
|
||||||
-define(SPECIAL_LANG_MSGID, <<"$msgid">>).
|
-define(SPECIAL_LANG_MSGID, <<"$msgid">>).
|
||||||
|
|
||||||
-define(MAX_ROW_LIMIT, 1000).
|
-define(MAX_ROW_LIMIT, 10000).
|
||||||
-define(DEFAULT_ROW, 100).
|
-define(DEFAULT_ROW, 100).
|
||||||
|
|
||||||
-type request() :: #{bindings => map(), query_string => map(), body => map()}.
|
-type request() :: #{bindings => map(), query_string => map(), body => map()}.
|
||||||
|
|
|
@ -140,13 +140,13 @@ t_public_ref(_Config) ->
|
||||||
ExpectRefs = [
|
ExpectRefs = [
|
||||||
#{
|
#{
|
||||||
<<"public.limit">> => #{
|
<<"public.limit">> => #{
|
||||||
description => <<"Results per page(max 1000)">>,
|
description => <<"Results per page(max 10000)">>,
|
||||||
in => query,
|
in => query,
|
||||||
name => limit,
|
name => limit,
|
||||||
example => 50,
|
example => 50,
|
||||||
schema => #{
|
schema => #{
|
||||||
default => 100,
|
default => 100,
|
||||||
maximum => 1000,
|
maximum => 10000,
|
||||||
minimum => 1,
|
minimum => 1,
|
||||||
type => integer
|
type => integer
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
In the REST API, the maximum limit of page queries is adjusted to 10,000.
|
Loading…
Reference in New Issue