fix(authn): users pagination on spec listener_id and authn_id

This commit is contained in:
JimMoen 2021-10-21 11:29:46 +08:00 committed by x1001100011
parent 295b1312be
commit f936aba6b7
1 changed files with 23 additions and 5 deletions

View File

@ -886,6 +886,15 @@ list_users_api_spec2() ->
Spec = list_users_api_spec(),
Spec#{
parameters => [
#{
name => id,
in => path,
description => <<"Authenticator id">>,
schema => #{
type => string
},
required => true
},
#{
name => listener_id,
in => path,
@ -896,13 +905,22 @@ list_users_api_spec2() ->
required => true
},
#{
name => id,
in => path,
description => <<"Authenticator id">>,
name => page,
in => query,
description => <<"Page Index">>,
schema => #{
type => string
type => integer
},
required => true
required => false
},
#{
name => limit,
in => query,
description => <<"Page limit">>,
schema => #{
type => integer
},
required => false
}
]
}.