Skip to content

[Expenditures] Add Create Expenditure Route (POST /expenditures) #62

@nourshoreibah

Description

@nourshoreibah

User Story

As a user I want to record an expenditure so that spending is tracked accurately.

Description

  • Add POST route to expenditures Lambda.
    Command:
    node tools/lambda-cli.js add-route expenditures POST /expenditures --body enteredBy:number,amount:number,description:string,projectID:number --status 201
  • Insert into expenditures and link via proj_expend.
  • Return inserted record.

Acceptance Criteria

  • Returns 201 with expenditure data.
  • Expenditure linked to correct project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions