Skip to content

Implement HarvestController & Routes #13

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BackendBackend Development

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions