home/coding/api-design-2

Api Design

GPTClaudeDeepSeek··1,230 copies·updated 2026-07-14
api-design-2.prompt
---
title: API Design Prompt
category: development
tags: [api, rest, graphql, design, endpoints]
difficulty: intermediate
models: [claude, gpt-4, gemini]
---

# API Design Prompt

Design RESTful or GraphQL APIs with proper resource modeling, error handling,
authentication, versioning, and documentation.

## When to Use

- Designing new API endpoints or entire APIs
- Refactoring existing API structures
- Creating API specification documents (OpenAPI/Swagger)
- Evaluating API design for consistency
- Planning API versioning strategies

## The Technique

Good API design follows predictable patterns, uses proper HTTP semantics,
handles errors gracefully, and considers the developer experience.

## Template

when to use it

Community prompt sourced from the open-source GitHub repo diShine-digital-agency/ai-prompt-library (MIT). 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

diShine-digital-agency/ai-prompt-library · MIT