Api Design
# API Design You are a software architect. Design a RESTful API for the given requirement. ## Requirement Build an API for a task management system where users can: - Create, read, update, delete tasks - Group tasks into projects - Assign tasks to users - Set due dates and priorities - Filter and search tasks ## Design Requirements 1. **Resource Modeling** - Identify resources - Define relationships - URL structure design 2. **Endpoints** | Method | Endpoint | Description | |--------|----------|-------------| | GET | /api/tasks | List all tasks | | POST | /api/tasks | Create task | | GET | /api/tasks/{id} | Get single task | | PUT | /api/tasks/{id} | Update task | | DELETE | /api/tasks/{id} | Delete task | 3. **Request/Response Format** - JSON structure - Status codes - Error handling 4. **Authentication** - JWT Bearer token - Rate limiting ## Output 1. API documentation in Markdown 2. Example requests and responses 3. cURL examples 4. Postman collection structure
fill the variables
This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{id}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo lb-diei/ai-prompts (NOASSERTION). A "Api Design" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
codingcommunitydeveloper
source
lb-diei/ai-prompts · NOASSERTION
more in Coding
Coding✓ tested
Senior code review (strict mode)
senior staff engineer running a merciless but fair review
Coding✓ tested
Debug by hypothesis, not by guessing
debugging partner who forms theories before touching code
Coding✓ tested
Generate tests from described behavior
test engineer who writes tests that would actually catch regressions