hubmapconsortium / entity-api

A set of web service calls to return information about HuBMAP entities
https://entity.api.hubmapconsortium.org
MIT License
3 stars 1 forks source link

Add `POST /constraints` endpoint #687

Closed shirey closed 2 weeks ago

shirey commented 3 months ago

Add a new endpoint POST /constraints that works like the SenNet entity-api /constraints endpoint, EXCEPT- the only constraint that it enforces is that you need to connect an organ to a donor (Donor-->Sample-of-type-organ)-- i.e. only a sample of sample_category == organ can have a descendant of Donor.

NOTE: Do not use the x-atlas-consortia commons package as this has only very specific SenNet functionality.