---
name: rest-api-endpoint
description: Template for creating REST API endpoints
tags: [api, rest, endpoint]
---
# REST API Endpoint
Create a REST API endpoint that:
- Method: [GET/POST/PUT/DELETE]
- Path: [/api/resource]
- Request body: [schema]
- Response: [schema]
- Authentication: [required/optional]
- Validation: [rules]
Include error handling and proper status codes.