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

Support `hubmap_id` in `GET /entities/<id>/instanceof/<type>` #625

Closed yuanzhou closed 3 months ago

yuanzhou commented 4 months ago

Currently only uuid is being supported by this GET /entities/<id>/instanceof/<type> call. As a result, when using hubmap_id in the URL we'll get back

{
    "instanceof": false
}

This is also problematic when the actual entity doesn't exist, instead a 404 with message should be returned. Follow what we have in the GET /entities/<id> to support both uuid and hubmap_id and it'll also address the 404 issue.