Prompts for code generation, debugging, code review, technical documentation, and API design.
50 prompts found
Design an SDK generation strategy for [API]. Include: OpenAPI spec requirements for auto-generation, supported languages (JavaScript, Python, Go, Java, Ruby),…
Design a testing strategy for [API]. Include: unit tests (service layer), integration tests (database + API), contract tests (Pact), end-to-end…
Design pagination for [API] endpoints returning collections. Compare: offset/limit, cursor-based, keyset, and page-based. For the recommended approach: provide request format,…
Design a consistent error handling format for [API]. Include: error response structure (error code, message, details, trace ID, documentation link),…
Design an authentication system for [API]. Compare: API keys, JWT, OAuth 2.0 (authorization code, client credentials, device flow), and session-based.…
Design a rate limiting strategy for [API]. Include: rate limit algorithms comparison (fixed window, sliding window, token bucket, leaky bucket),…
Design a webhook system for [SERVICE]. Include: event types and payloads, webhook registration API, delivery mechanism (retry strategy with exponential…
Design an API versioning strategy for [API]. Compare: URI versioning (/v1/), header versioning (Accept header), query parameter (?version=1), and content…
Design a GraphQL schema for [DOMAIN/APPLICATION]. Include: Query type (field definitions with arguments), Mutation type (create/update/delete operations), Type definitions (objects,…
Design a RESTful API for [RESOURCE] in a [APPLICATION TYPE] application. Include: resource model (fields, types, relationships), URL structure (collection,…