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
parent eb452bd237
commit 3683ba13ee
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 = list_users_api_spec(),
Spec#{ Spec#{
parameters => [ parameters => [
#{
name => id,
in => path,
description => <<"Authenticator id">>,
schema => #{
type => string
},
required => true
},
#{ #{
name => listener_id, name => listener_id,
in => path, in => path,
@ -896,13 +905,22 @@ list_users_api_spec2() ->
required => true required => true
}, },
#{ #{
name => id, name => page,
in => path, in => query,
description => <<"Authenticator id">>, description => <<"Page Index">>,
schema => #{ schema => #{
type => string type => integer
}, },
required => true required => false
},
#{
name => limit,
in => query,
description => <<"Page limit">>,
schema => #{
type => integer
},
required => false
} }
] ]
}. }.