Generate a Full CRUD Module

Use Copilot to scaffold a complete CRUD module for a resource, with routes, validation, and service logic.

category:code-generation
backend
crud
rest
node
typescript
0

Prompt

Generate a complete CRUD module for the resource: [RESOURCE_NAME].
  
  Stack:
  - [language/framework, e.g. TypeScript + Node.js + Express]
  
  Requirements:
  - Define a data model/interface for the resource.
  - Implement controller functions: list, get by id, create, update, delete.
  - Add basic input validation for create and update.
  - Use clear error handling and HTTP status codes.
  - Put route definitions in a separate file, wired to the controller.
  
  Keep the code idiomatic and easy to extend.