ThinkWithPrompt by SynotticThinkWithPrompt

Design an API

Resources, endpoints, request/response shapes, errors, auth, and versioning for a REST or GraphQL API.

Software DevelopmentRTFStandardCodingFill-in Template

The prompt

Design an API for me. What it does and who uses it: [PURPOSE, consumers — web app, mobile, partners] Domain entities and relationships: [LIST] Key use cases: [LIST] Style: [REST / GraphQL / gRPC — or recommend] Constraints: [auth method, scale, latency, compatibility, existing conventions] Deliver: 1. Resource model and endpoints (or schema/services) with methods, paths, and purpose. 2. Request/response examples for the main operations. 3. Conventions — naming, pagination, filtering, sorting, idempotency. 4. Error format and status codes. 5. Authentication, authorization, and rate limiting. 6. Versioning and deprecation strategy. 7. An OpenAPI 3.1 snippet for the core endpoints. 8. Design trade-offs and open questions.

Highlighted [brackets] are blanks to replace with your own details.

Fill in the blanks and use this promptMore Software Development prompts

What to fill in

  • PURPOSE, consumers — web app, mobile, partners
  • LIST
  • REST / GraphQL / gRPC — or recommend

How this prompt is built

This prompt follows the RTF structure (Role, Task, Format). RTF tells the model who to be, what to do and what shape the answer should take. It is the quickest structure that still gives noticeably better results than a bare request.

Related prompts

Find more prompts like this