# fastapi-endpoint - Author: Development Team - Repository: samnababar/todo-phase-3 - Version: 20260206123506 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/samnababar/todo-phase-3 - Web: https://mule.run/skillshub/@@samnababar/todo-phase-3~fastapi-endpoint:20260206123506 --- ### 5. `fastapi-endpoint-skill.md` ```markdown --- name: fastapi-endpoint description: Generates secure CRUD API endpoints matching hackathon spec. --- # FastAPI Endpoint Skill ## Purpose Implement all required REST endpoints with full security and validation. ## Process 1. Create routes exactly as PDF table: - GET/POST /api/{user_id}/tasks - GET/PUT/DELETE /api/{user_id}/tasks/{id} - PATCH /api/{user_id}/tasks/{id}/complete 2. Apply JWT dependency and user isolation. 3. Use Pydantic models for request/response. 4. Return proper HTTP status codes. ## Examples POST /tasks → creates task with current_user.id as owner. ## Guidelines - Use Depends() for current_user injection. - Combine with jwt-security-skill and user-isolation-skill.