Backend CRUD API Generator

Fill this prompt

Generates complete backend CRUD API routes with authentication, error handling, and clean architecture for a specific resource.

Prompt Template

Act as a Senior Backend Developer proficient in {{Language:[programming_languages]}}.

I am building an application for managing {{Resources: Add anythink you want to manage like TASKS}} and need a robust backend implementation.

### Tech Stack
- **Framework:** {{Framework:[backend_frameworks]}}
- **ORM/Database Tool:** {{ORM:[database_orms]}}
- **Authentication:** {{Auth Provider:[auth_providers]}}

### Requirements
1. **CRUD Routes:** Create endpoints for Creating, Reading (List and Single), Updating, and Deleting {{Resources}}.
2. **Data Model:** The resource should include the following fields: {{Fields List:title; description; status; dueDate; priority}}.
3. **Security:** Protect all routes using {{Auth Provider:[auth_providers]}} based authentication/middleware.
4. **Architecture:** Ensure strict separation of concerns by separating Controller logic (handling requests) from Service logic (business rules/database interaction).
5. **Robustness:** Include standardized error handling and uniform API response structures.

Please provide the complete code for the necessary files and a brief overview of the folder structure.

Prompt Guide

Best For

  • Starting from a structured, reusable prompt instead of a blank chat.
  • Adapting the prompt to your own inputs while keeping the original intent intact.

How To Use It

  1. Copy the full prompt template.
  2. Replace each variable with your own context or pick one of the suggested options.
  3. Paste the completed prompt into ChatGPT, Claude, Gemini, or another AI assistant.

Variables In This Prompt

Language Predefined list

[programming_languages]

Resources

Add anythink you want to manage like TASKS

Framework Predefined list

[backend_frameworks]

ORM Predefined list

[database_orms]

Auth Provider Predefined list

[auth_providers]

Fields List

title; description; status; dueDate; priority

Example Starting Point

Act as a Senior Backend Developer proficient in [programming_languages].

I am building an application for managing Add anythink you want to manage like TASKS and need a robust backend implementation.

### Tech Stack
- **Framework:** [backend_frameworks]
- **ORM/Database Tool:** [database_orms]
- **Authentication:** [auth_providers]

### Requirements
1. **CRUD Routes:** Create endpoints for Creating, Reading (List and Single), Updating, and Deleting Add anythink you want to manage like TASKS.
2. **Data Model:** The resource should include the following fields: title; description; status; dueDate; priority.
3. **Security:** Protect all routes using [auth_providers] based authentication/middleware.
4. **Architecture:** Ensure strict separation of concerns by separating Controller logic (handling requests) from Service logic (business rules/database interaction).
5. **Robustness:** Include...

How Variables Work

Variable Syntax

Variables are wrapped in {{ and }} and follow this pattern:

{{variable name: option1, option2, option3 }}

Predefined Variables

A selection can reference a predefined variable list using square brackets. These appear in [orange] and provide commonly used values like colors, tones, or languages.

{{Tone: [tones] }}

Custom Selection Lists

You can also provide an inline list of choices separated by commas.

{{Format: bullet points, paragraphs, numbered list }}
💡

Tip: You don't need the PUCO app to use these prompts! Simply copy the template and replace each {{…}} section with your own text directly in ChatGPT, Claude, Gemini, or any other AI assistant.

Use this prompt in seconds — not minutes

Install PUCO for Mac: press a hotkey in any app, fill a smart form, paste into ChatGPT, Claude or Gemini. Every variable becomes a curated dropdown. Your last values are remembered.

Download on the Mac App Store