This project exposes an api for calculating jackets that can be worn by various kittens. It fetches a kitten by its id (name) and then fetches all jackets from a partner service (the jackets api). It then calculates which jackets could pertain to each kitten and returns the jackets with the total number of jackets that could be worn by each kitten.
- Kittens Api
- Jackets Api
- Run the following:
sbt run
- Import the postman collection inside the /postman folder into postman.
- Send the request to get the kitten with the name of "ben". The request should return successfully.
- Run the following:
sbt test
See the api spec in the /api folder, as well as the postman collection mentioned above.