Skip to content

[BACKEND] Add pagination to GET /transactions #32

Description

@Trovic1

Summary

Support ?page= and ?limit= query params on the transactions endpoint, returning page metadata.

Scope

  • backend only

Likely files

  • src/routes/TransactionRoutes.js
  • src/models/Transaction.js

Acceptance criteria

  • Accepts page and limit with sane defaults and caps
  • Response includes total count and current page
  • Works in both Postgres and local-JSON modes

Verification

  • Seed many transactions and confirm paging returns correct slices

Labels: backend, enhancement, help wanted


Metadata

Metadata

Assignees

No one assigned

    Labels

    backendBackend / API workenhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions