home/coding/create-api-endpoint-prompt

Create Api Endpoint.prompt

GPTClaudeDeepSeek··1,304 copies·updated 2026-07-14
create-api-endpoint-prompt.prompt
# Create REST API Endpoint

Generate secure, well-structured REST API endpoints with proper error handling and validation.

## Objectives

1. Follow RESTful conventions (GET, POST, PUT, DELETE)
2. Implement proper HTTP status codes
3. Add request validation
4. Handle errors gracefully
5. Include authentication/authorization
6. Add API documentation

## Endpoint Template

when to use it

Community prompt sourced from the open-source GitHub repo AmadeusITGroup/ai-primitives-hub (Apache-2.0). A "Create Api Endpoint.prompt" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.

tags

codingcommunitydeveloper

source

AmadeusITGroup/ai-primitives-hub · Apache-2.0