diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-10-03 14:49:11 +0000 |
|---|---|---|
| committer | Pjotr <wrk@bosa.lan> | 2026-10-03 14:49:11 +0000 |
| commit | 5ecc6b70e8a6ce2ba91f7808295a7d7672481d58 (patch) | |
| tree | 2e7a704d7692098588fbf5fde5b9aa4fc018e8e0 /test/python/test_version.py | |
| parent | 9e5655e21a3ec486b1d52d342156de0edc06df76 (diff) | |
| download | genenetwork4-5ecc6b70e8a6ce2ba91f7808295a7d7672481d58.tar.gz | |
Add GET /groups/{group}/strains, mirroring gn-guile's strain-id-names.
* src/db.rs (Strain): New struct.
(get_group_strains): New function. Joins Strain and StrainXRef by
group Id, optionally filtered to strains used for mapping, matching
gn-guile's gn.data.strains:strain-id-names (same InbredSetId and
used-for-mapping? arguments), returning strain names as well as ids.
* src/lib.rs (GroupStrainsParams): New struct, the used_for_mapping
query parameter.
(group_strains): New handler for GET /groups/{group}/strains. Looks
the group up the same way group_by_name does, for the same 404 shape
on an unknown group.
(app): Register it.
* tests/group_strains.rs, test/python/test_group_strains.py: New
files.
* tests/openapi.rs, test/python/test_openapi.py: Check the new path
is in the generated spec.
* README.md (GET /groups/{group}/strains): Document it, including the
used_for_mapping filter excluding BXD's parent strains.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XDDpXvZBQat9uSgDeEMJ8d
Diffstat (limited to 'test/python/test_version.py')
0 files changed, 0 insertions, 0 deletions
