Coding

API Design from Requirements

Turn product requirements into a well-structured REST API design.

The prompt

Design a REST API for [FEATURE]. Return: (1) endpoint list with HTTP methods, paths, request/response schemas in JSON, (2) authentication approach, (3) error handling strategy with status codes, (4) pagination approach, (5) rate limiting recommendation. Follow REST best practices. Use plural nouns for resources. Include example curl commands for each endpoint.

Replace the parts in [BRACKETS] with your own details before running it. Works with ChatGPT, Claude, Gemini, or any capable model.

← All 17 prompts

Search Data Science After Dark

Search across prompts, models, papers, guides, and library topics.