Skip to content

feat: FastAPI endpoints — POST /guide/recommend and /guide/score (Closes #10) - #178

Open
laurentketterle-hub wants to merge 1 commit into
mergeos-bounties:masterfrom
laurentketterle-hub:feat/fastapi-endpoints-10
Open

feat: FastAPI endpoints — POST /guide/recommend and /guide/score (Closes #10)#178
laurentketterle-hub wants to merge 1 commit into
mergeos-bounties:masterfrom
laurentketterle-hub:feat/fastapi-endpoints-10

Conversation

@laurentketterle-hub

Copy link
Copy Markdown

Implements FastAPI endpoints for PoseGuide #10 (50 MRG).

Files added:

  • poseguide/api.py — FastAPI application with:
    • POST /guide/recommend — Tag-based pose recommendations with Jaccard similarity
    • POST /guide/score — Pose alignment scoring with per-joint analysis
    • GET /health — Health check endpoint
    • Pydantic models for request/response validation
    • 15 mock poses across yoga, fitness, office, dance, studio categories

Run:

pip install fastapi uvicorn
uvicorn poseguide.api:app --reload

Example:

curl -X POST http://localhost:8000/guide/recommend \
  -H "Content-Type: application/json" \
  -d '{"tags": ["yoga", "standing"], "count": 3}'

Implements REST API for PoseGuide#10.
- POST /guide/recommend — tag-based pose recommendations
- POST /guide/score — pose alignment scoring
- Jaccard similarity for tag matching
- Per-joint scoring with visibility weighting
- Pydantic models for request/response validation

Signed-off-by: laurentketterle-hub <laurentketterle-hub@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant