biolink-api icon indicating copy to clipboard operation
biolink-api copied to clipboard

/bioentity/function/<id> conflict with /bioentity/<type>/<id>

Open deepakunni3 opened this issue 7 years ago • 1 comments

The route /bioentity/function/<id> hides the ability to use /bioentity/<type>/<id> endpoint when type is function.

Also, the response given by the bioentity/function/<id> route is different than /bioentity/<type>/<id> route.

This is because we don't do marshaling of the response in bioentity/function/<id>

deepakunni3 avatar Apr 16 '19 21:04 deepakunni3

This requires,

  • refactoring /bioentity/function/<id> such that its returning the proper marshaled association results
  • calling /bioentity/function/<id> implementation when type in /bioentity/<type>/<id> is function, to ensure consistency

This is a bigger discussion that involves @lpalbou and @cmungall

deepakunni3 avatar Apr 25 '19 18:04 deepakunni3