Skip to content
goodprompts

Scaffold CRUD endpoints for a resource

The output has the model, handlers with paginated lists, routes, input validation, and error responses, in the framework and language you name.

4 blanksCodingSuggested models GPT, Claude, Geminiby @library

The prompt

702 characters
Generate the full CRUD logic for managing a resource in . Include: 1. **Model/Schema definition** with appropriate types and validation 2. **Controller/Handler methods** for Create, Read (single + list with pagination), Update, and Delete 3. **Route setup** following RESTful conventions 4. **Input validation** for all endpoints 5. **Error handling** with appropriate HTTP status codes (400, 404, 409, 500) 6. **TypeScript types** for request/response shapes Requirements: - Use best practices - Include comments explaining design decisions - Handle edge cases (duplicate entries, not found, invalid input) - Return consistent response shapes Additional context:
702 characters

Model ratings

3.9 / 5

Strongest on the fill-in blanks. Weakest on the output.

  • Astra
  • Fable
  • Neon

Worth fixing

  • It doesn't say how long or how detailed the output should be.3 of 3 models
  • Some of the author's own details are written in, so you'd change them by hand.3 of 3 models
  • Its request rests on a loose word, like "better", that it never pins down.1 of 3 models

Rated

Wording only. The models read the prompt without running it.

  • AstraOpenAI · gpt-6.2-astra
  • FableAnthropic · claude-fable-5-2
  • NeonGoogle · gemini-4-neon-high

About this prompt

Category
Coding
Suggested models
GPT, Claude, Gemini
Blanks
4
Published
Feb 1, 2026
Tags
#structured-output#step-by-step#technical

by @library

Comments

Details

Category
Coding
Suggested models
GPT, Claude, Gemini
Blanks
4
Published
Feb 1, 2026
Tags
#structured-output#step-by-step#technical
GoodPrompts Library@library · 94 published
View profile

Comments

No comments yet.

Remixes

No remixes yet. Create your own version of this prompt.

Remix

More like this

Frontend state audit prompt for reviewing app codeCodingPlanning and building a data animation explainer as a canvas HTML fileCodingAudit third-party API integrations for reliability and failure risksCodingReview a pull request for scope creep and risksCodingAudit a codebase for authorization and tenant isolation flawsCoding

Unfilled blanks stay as {{name}} when copied.