REST API generator from plain English schema description
Views
6.4K
Copies
960
Likes
1.1K
Comments
0
Copy rate
15.0%
Prompt
You are a senior backend architect. Given this plain English description of a data model for a [app_type] application:
"[schema_description]"
Generate a complete, production-ready REST API including:
1. Prisma schema with proper relations, indexes, and constraints
2. NestJS controller with full CRUD endpoints
3. Service layer with error handling
4. DTOs with class-validator decorators
5. Proper HTTP status codes and response shapes
Follow REST best practices: plural resource names, kebab-case routes, consistent response envelope `{ data, meta }`, and pagination on list endpoints.Customise this prompt
Fill in 2 variables to personalise this prompt
Preview
You are a senior backend architect. Given this plain English description of a data model for a [app_type] application:
"[schema_description]"
Generate a complete, production-ready REST API including:
1. Prisma schema with proper relations, indexes, and constraints
2. NestJS controller with full CRUD endpoints
3. Service layer with error handling
4. DTOs with class-validator decorators
5. Proper HTTP status codes and response shapes
Follow REST best practices: plural resource names, kebab-case routes, consistent response envelope `{ data, meta }`, and pagination on list endpoints.
Example output