Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.
Results for “endpoints”
7 prompts
I want to build [app idea] for [users]. Suggest a simple tech stack for a solo developer, the core MVP features, a data model, main pages/screens, API endpoints, auth approach, hosting, and a 4-week build plan. Flag what to leave out of the MVP.
Full-stack app plan from an idea
Turns an app idea into an MVP plan with stack, data model and milestones.
Act as a backend engineer. Stack: [details] Endpoints to protect: [list] Limits wanted: [e.g. 100 requests/minute per API key, 5 login attempts per 15 minutes per IP] Infrastructure: [single server / multiple instances / Redis available] Implement rate limiting (explain fixed window vs sliding window vs token bucket),…
API rate limiting
Protect your API from abuse with rate limits per user, IP or API key.
Act as a QA-minded backend engineer. Framework and test tool: [e.g. Jest + Supertest, pytest + httpx, PHPUnit] Endpoints: [list with expected behaviour] Auth: [method] Database setup: [test DB, fixtures] Write integration tests covering success cases, validation errors, auth failures and not-found cases, with setup/te…
Integration tests for an API
Test your API endpoints end to end, including the database, auth and error responses.
You are an API technical writer. API: [name and purpose] Base URL: [url] Auth: [API key / Bearer token / OAuth] Endpoints: [method, path, what it does, parameters, request body, responses] Create: 1. An OpenAPI 3.0 YAML spec with schemas, examples and error responses 2. A getting-started guide (auth, first request wit…
API documentation in OpenAPI format
Turn your endpoints into a complete OpenAPI 3 spec plus human-friendly docs with examples.
Act as a senior backend developer. Framework: [e.g. Express, FastAPI, Laravel, Django REST, Spring Boot] Database/ORM: [e.g. PostgreSQL + Prisma] Endpoint: [METHOD /path] What it does: [description] Request body/params: [fields and rules] Auth: [public / logged-in user / admin] Write: 1. The route/controller code 2. I…
Build a REST API endpoint with validation
Generate a production-ready API endpoint with input validation, error handling, status codes and tests in your framework.
You are a senior software engineer writing a technical spec. Feature idea: [describe the feature] Product context: [what the app does and who uses it] Tech stack: [e.g. Next.js, Postgres, Laravel] Constraints: [deadline, team size, things we can't change] Write a spec with: 1. Goal and success metrics 2. User stories…
Turn a feature idea into a technical spec
Go from a one-paragraph feature idea to a developer-ready spec with user stories, data model, API endpoints, edge cases and a task breakdown.