AllenNeuralDynamics / aind-metadata-service

Service to retrieve Labtracks/Sharepoint info using a REST API
MIT License
3 stars 1 forks source link

Add api endpoint for tars injection materials #166

Closed jtyoung84 closed 7 months ago

jtyoung84 commented 7 months ago

User story

As a user, I want to retrieve information from TARS using a rest api, so I can easily get the data

Acceptance criteria

Sprint Ready Checklist

Notes

For now, we can call the endpoint tars_injection_materials

mekhlakapoor commented 7 months ago

blank string -> no data response get results + then filter equal + then map from there (no data response)

mekhlakapoor commented 7 months ago

This ticket took longer than expected because the TARS API's search functionality supports "contains". Therefore, we needed to add a filter on the response to ensure that the service only maps injection_materials for prep lots that are an exact match. Also added a no data response class method to ModelResponse.