Skip to content

Conversation

@Nzube-ctrl
Copy link

Pull Request

Description

Added Pagination: Introduced page and limit query parameters to fetch paginated job listings.
Updated Controller: Used @query() with ParseIntPipe to ensure valid integer inputs. Improved Swagger documentation with @apiquery() for page and limit.
Enhanced Error Handling: Returns 400 Bad Request if page or limit is invalid (negative or non-integer).
Defaults to a reasonable page size if no limit is provided.
Updated Response Structure: Includes pagination metadata (total_jobs, total_pages, current_page, per_page).

Related Issue

Fixes #(issue)

Type of Change

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation updates
  • style: Code style/formatting changes
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Test additions/updates
  • chore: Build process or tooling changes
  • ci: CI configuration changes
  • other:

How Has This Been Tested?

  • Unit tests
  • Integration tests
  • Manual tests

Test Evidence

Screenshots (if applicable)

Documentation Screenshots (if applicable)

Checklist

  • [x ] My code follows the project's coding style
  • I have commented my code, particularly in hard-to-understand areas
  • [ X] I have made corresponding changes to the documentation
  • [x ] My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • [ x] New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published
  • I have included a screenshot showing all tests passing
  • I have included documentation screenshots (if applicable)

Additional Notes

@Nzube-ctrl Nzube-ctrl closed this Mar 2, 2025
@Nzube-ctrl Nzube-ctrl reopened this Mar 2, 2025
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

Successfully merging this pull request may close these issues.

1 participant