Skip to content

Implement HarvestController & Routes #13

@Benjtalkshow

Description

@Benjtalkshow

Implement HarvestController & Routes

Title: Create harvest submission and approval endpoints

Description:
Implement HarvestController with endpoints for harvest submission, admin approval, and history retrieval.


Endpoints

  • POST /harvest (farmer only)
  • GET /harvest/pending (admin only)
  • POST /harvest/:id/approve (admin only)
  • POST /harvest/:id/reject (admin only)
  • GET /harvest/:farmId

Acceptance Criteria

  • Harvest submission with image upload is working
  • Admin approval workflow is functional
  • Rejection workflow is working
  • History retrieval is accurate

Metadata

Metadata

Assignees

Labels

BackendBackend Development

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions