diff options
| author | Frederick Muriuki Muriithi <fmuriit1@uthsc.edu> | 2026-08-27 19:21:50 +0000 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-08-27 15:05:04 -0500 |
| commit | d103f87d3cb152ceca4afc90967f289662043a7d (patch) | |
| tree | b709be69a5bc344dcf117125b47e15ee004b6743 /sql | |
| parent | 4268c2f8774e8c8a45e5c596b89dcf62570c12f8 (diff) | |
| download | genenetwork3-d103f87d3cb152ceca4afc90967f289662043a7d.tar.gz | |
api: add v1 blueprint hierarchy for species/populations/case-attributes
Introduces a nested blueprint structure that provides clean RESTful URLs
alongside the existing flat endpoints (which are left unchanged):
/api/v1/species/<s>/populations/<p>/case-attributes/
/api/v1/species/<s>/populations/<p>/case-attributes/edit (POST)
/api/v1/species/<s>/populations/<p>/case-attributes/diffs/<t>/list
/api/v1/species/<s>/populations/<p>/case-attributes/diffs/<id>/approve
/api/v1/species/<s>/populations/<p>/case-attributes/diffs/<id>/reject
New files:
* gn3/api/version01.py — top-level v1 blueprint; registers speciesbp at /species
* gn3/api/species.py — species blueprint; registers popbp; stubs list/detail (501)
* gn3/api/populations.py — populations blueprint; registers caseattrsbp; stubs (501)
Changes to existing files:
* gn3/api/case_attributes.py — adds caseattrsbp Blueprint and v1_ route handlers
that delegate to the existing private helper functions; **kwargs absorbs
species_id so existing logic only needs pop_id (= InbredSet ID)
* gn3/app.py — registers v01 at /api/v1
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Reviewed-By: Frederick M. Muriithi <fredmanglis@gmail.com>
Diffstat (limited to 'sql')
0 files changed, 0 insertions, 0 deletions
