Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider implementing an extension for paginated responses #5

Closed
sunecko opened this issue May 7, 2024 · 2 comments
Closed

Consider implementing an extension for paginated responses #5

sunecko opened this issue May 7, 2024 · 2 comments

Comments

@sunecko
Copy link
Contributor

sunecko commented May 7, 2024

It would be a good idea to add an extension for paged responses, for example in your request you implement pagedRequest and the response pagedResponse. So that in the request you can define page size and page number

public class PagedResponse<T> : Response<IEnumerable<T>>
{
    public virtual int PageNumber { get; set; }
    public int PageSize { get; set; }
    public int TotalPages { get; set; }
    public int TotalRecords { get; set; }
}

Tell me if you like it and I can help with that, or do you think it is not necessary for the tamplate

@CerealKiller97
Copy link
Member

@hectorrhg Sounds good, go ahead added. 👍🏻

@sunecko
Copy link
Contributor Author

sunecko commented May 14, 2024

@CerealKiller97 see [#6 ]

@sunecko sunecko closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants