Fun project playing around the PokeAPI and FunTranslations API.
You need Docker installed. Docker is supported on Windows, Mac OS and most Linux distributions. You can find more information on how to install it here.
docker image build -t poke-challenge .
docker run -p 5000:5000 poke-challenge
GET /pokemon/{pokemon name}
Example response for request GET /pokemon/wartortle
{
"name": "Wartortle",
"description": "Often hides in\nwater to stalk\nunwary prey. For\fswimming fast, it\nmoves its ears to\nmaintain balance.",
"habitat": "waters-edge",
"legendary": false
}
GET /pokemon/translated/{pokemon name}
Example response for request GET /pokemon/translated/wartortle
{
"name": "Wartortle",
"description": "Oft hides in water to stalk unwary prey. For swimming festinate, 't moves its ears to maintain balance.",
"habitat": "waters-edge",
"legendary": false
}
- Add healthcheck endpoints for integration with Kubernetes and other devops tools to validate the deployment.
- Add caching at the PokemonService level either and at the FunTranslationService level, in-memory could be sufficient if only one instance is deployed. Using Redis might be more suitable if multiple instances of this service must run together.
- Add documentation through Swagger endpoints if developers are to consume this API.
- Allow setting the language through configuration rather than constantly using english.