|
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>
|