Add CRUD Endpoints
Quickly define the full path from model design to tests when adding CRUD features.
When to use
Use when adding a new domain model, expanding admin APIs, or shipping MVP features.
CRUD Endpoint Prompt
Copy and use
"I need to add CRUD endpoints to an existing service. Create an implementation plan and starter code based on the inputs below. [Inputs] - Resource name: [RESOURCE] - Field definition: [FIELDS] - Backend stack: [FastAPI/Hono/Nest] - Storage: [RDB/NoSQL/in-memory] - Auth required: [true/false] [Output requirements] 1) Route/DTO/validation structure 2) Create/Read/Update/Delete API design 3) Error and status code policy 4) At least 5 test cases 5) Frontend integration checklist"
Copy this prompt and paste it into your AI chat.
Response Policy Example
POST /api/v1/projects -> 201 Created
GET /api/v1/projects/{id} -> 200 OK
PATCH /api/v1/projects/{id} -> 200 OK
DELETE /api/v1/projects/{id} -> 204 No Content
GET /api/v1/projects/{missing} -> 404 Not FoundExecution Checklist
0/5 doneTL;DR
- Use this section as a quick baseline for CRUD endpoint changes.
- Replace branch names, secrets, URLs, and thresholds with your team-specific values.
Prerequisites
- Confirm repository and runtime access permissions.
- Verify baseline commands (`install`, `build`, `test`) for local/CI.
- Ensure environment variables, secrets, and deployment targets are up to date.
Steps
- Lock the change goal and scope in one sentence.
- Apply the core CRUD endpoint changes changes in minimal commits.
- Capture validation logs and immediately update checklist/docs.
Validation
- Confirm build/test pass reproducibly on the current branch.
- Run manual sample checks on critical user/operation flows.
- Cross-check ko/en docs and links for intent consistency.
Troubleshooting
- Capture logs, request payloads, and environment values first on failures.
- Narrow down by permissions, env vars, routing, and build artifacts.
- Record temporary mitigation and root-cause fix separately.
References
Related Articles
Last updated: February 22, 2026 · Version: v0.0.1
Send Feedback
Opens a new issue page with your message.
Open GitHub Issue