This week, I couldn’t work on Auth0 like I updated in my previous blog. I had to unblock my team to create the necessary endpoints for UI integration. I ended up working on a POST endpoint for creating an animal. I created a model schema, necessary lambda functions and handlers. I was able to successfully deploy and create the ‘put-animal’ endpoint.
I also created a GET endpoint for animal details. We had assumed that all animals in each shelter are uniquely named. This made it easier to fetch the animal’s details just by passing in the animal name and shelter name.
I had the combination of animal name and shelter name as primary key in the animals table, which made things much easier. I just had to pass both the names as path parameters and was able to fetch the details of the animal. I’m facing some difficulties in deploying the endpoint, on which I’m actively working to resolve. For next week, I’m planning to create all the required endpoint and work on the ability to upload and get images from S3 using a pre-signed URL.
It’s so awesome to see few things come together after the UI integration and that makes me happy. As my work was fully on backend, I could never see the things I built in action, other than testing with Postman. Looking forward to work on the endpoints more 🙂