Add Repo entity with schema, API, and migration #10
No reviewers
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-api!10
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "9-add-repo-entity-with-schema-api-and-migr"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
RepoSQLAlchemy model with name, slug, platform, url, status, role, project_idRepoCreate,RepoUpdate,RepoOut/reposwith?project=slugand?status=activefiltersrepostable with seed data for all 8 existing reposmain.py, importRepoinalembic/env.pyFiles Changed
src/pal_e_docs/models.py— AddRepomodel +reposrelationship onProjectsrc/pal_e_docs/schemas.py— AddRepoCreate,RepoUpdate,RepoOutsrc/pal_e_docs/routes/repos.py— New file: CRUD endpointssrc/pal_e_docs/main.py— Register repos routeralembic/env.py— ImportRepomodelalembic/versions/a1b2c3d4e5f6_add_repos_table.py— Migration + seed dataSeed Data
Test plan
GET /reposreturns all 8 seeded reposGET /repos?project=pal-e-docsreturns 2 repos (app + mcp)GET /repos?status=activereturns all 8GET /repos/pal-e-docs-appreturns single repo with projectPOST /reposcreates new repoPUT /repos/{slug}updates repoDELETE /repos/{slug}removes repo (204)Closes #9
🤖 Generated with Claude Code