Skip to content

Feat/web grower notes api#665

Open
kaohenry9287 wants to merge 5 commits intoGreenstand:masterfrom
kaohenry9287:feat/web-grower-notes-api
Open

Feat/web grower notes api#665
kaohenry9287 wants to merge 5 commits intoGreenstand:masterfrom
kaohenry9287:feat/web-grower-notes-api

Conversation

@kaohenry9287
Copy link
Copy Markdown

@kaohenry9287 kaohenry9287 commented Apr 27, 2026

Description

This PR related to
(Greenstand/treetracker-admin-client#1184)

  • Adds grower note CRUD API endpoints to the admin API
  • [new] src/models/growerNote.model.ts
  • [new] src/repositories/growerNote.repository.ts
  • [new] src/controllers/growerNote.controller.ts

Issue(s) addressed

  • Resolves #

What kind of change(s) does this PR introduce?

  • Enhancement
  • Bug fix
  • Refactor

Please check if the PR fulfils these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Issue

What is the current behavior?

No API exists to create, read, update, or delete grower notes.

What is the new behavior?

POST /api/planter/{growerId}/notes — Create a note

截圖 2026-04-27 下午4 21 46

GET /api/planter/{growerId}/notes — List notes for a planter

截圖 2026-04-27 下午4 22 02

GET /api/organization/{organizationId}/planter/{growerId}/notes — List notes scoped to org + planter

截圖 2026-04-27 下午4 38 56

PATCH /api/planter/{growerId}/notes/{noteId} — Update a note

截圖 2026-04-27 下午4 39 18

DELETE /api/planter/{growerId}/notes/{noteId} — Delete a note

截圖 2026-04-27 下午4 28 48

Breaking change

Does this PR introduce a breaking change?

No.

Other useful information

Companion PR to the frontend grower notes feature. The grower_note table must be created in the database before deploying.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant