Browse Source
* resolves issue #4043 default values for itemsPerPage and startIndex * UsersController#Get now uses a queryParamModel Co-authored-by: Ahmad Mustafa Jebran <jebran.mustafa@gmail.com> Co-authored-by: Luris Solis <solisluris@gmail.com> * Test now passes, default 50 is represented --------- Co-authored-by: Jared McCannon <jmccannon@bitwarden.com>pull/4909/head
6 changed files with 71 additions and 16 deletions
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations; |
||||
|
||||
public class GetUsersQueryParamModel |
||||
{ |
||||
public string Filter { get; init; } = string.Empty; |
||||
|
||||
[Range(1, int.MaxValue)] |
||||
public int Count { get; init; } = 50; |
||||
|
||||
[Range(1, int.MaxValue)] |
||||
public int StartIndex { get; init; } = 1; |
||||
} |
||||
Loading…
Reference in new issue