Skip to content

Endpoint to Fetch UsersΒ #50

@rcmtcristian

Description

@rcmtcristian

πŸ› οΈ Fetching Users


πŸ“‹ Endpoints Required

  • GET /api/v1/users β€” List all resources (paginated)
  • GET /api/v1/users/:id β€” Get a single resource by ID

πŸ—‚οΈ Data Schema

Describe or paste the expected request/response shape below.

NA - GET requests


---

## βœ… Acceptance Criteria
- [X] All endpoints return correct HTTP status codes
- [ ] Input validation is applied to request bodies and query params
- [X] Errors return consistent, descriptive JSON responses
- [ ] Endpoints are protected by appropriate auth/authorization middleware
- [X] Pagination supported on the list endpoint
- [X] Unit tests cover each endpoint (happy path + error cases)
- [X] Integration tests pass in CI
- [ ] OpenAPI / Swagger docs updated

---

## πŸ”’ Auth & Permissions
<!-- Describe which roles can access endpoints -->

---

## πŸ”— Related

<!-- Any related links -->
---

## πŸ’¬ Additional Context
<!-- Any edge cases, business rules, soft deletes, cascades, rate limits, or other notes -->

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Task.

    Projects

    Status

    Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions