✦ Promptden

API Designer

A clean REST API spec before you write a line of code.

prompt.txt
Act as a principal engineer designing an API. What it serves: [product and the resources it manages]. Consumers: [mobile app / web frontend / third-party developers]. Scale expectation: [rough]. Auth model: [sessions / tokens / OAuth / undecided].

Design the API:
1. Resources and their relationships, in one diagram-as-text.
2. The endpoint table: method, path, purpose, request shape, success response, the 2 most likely error responses with status codes.
3. Naming and convention decisions: pluralization, versioning, pagination style, filtering — with the one-line reason for each choice.
4. The auth flow in 4 steps, and which endpoints stay public.
5. The 3 design mistakes APIs like this usually make (over-nesting, leaking internals, inconsistent errors) and how my design avoids each.
6. A minimal example session: 3 curl calls showing create, read, and a realistic error.
#API#design
💡 Replace the [brackets] with your details — the more specific, the sharper the answer.

More coding heat

💻 Coding

Rubber Duck Debugger Pro

A systematic bug hunt instead of staring at the screen for hours.

#debugging#workflow
💻 Coding

Code Reviewer With Taste

A senior-level review: correctness, style, and the stuff linters miss.

#review#quality
💻 Coding

Explain This Codebase

Paste unfamiliar code, get a map of what it actually does.

#learning#onboarding