Spring boot application

Job ID: 33906905

Budget: ₹600 – ₹1,500 INR

Create a spring boot application
1. API that accepts an input either cat or dog and depending on that input returns a
fact about that animal
a) This API is unprotected and should be accessible by anyone
b) The response should just be the fact. Do not send an additional image or extra
information.
c) API's remote host/base URL should be picked from a properties file
d) There are many free services that provide this feature use any of them. If an API
key is required then read that from a properties file and make sure the API key is
part of the bundled properties file
2. In an embedded DB store the information from API in 1
a) IP address of the caller
b) Fact that was returned by the remote API
c) Time of access
3. API that returns the data stored in embedded db during the current run
a) This API should be protected with some credentials(the token for verification
can be hardcoded or generated with some hardcoded credentials)
b) The verification/authorization should happen in a filter. Don't do this in the
controller.
4. Send the project and steps to run. For example if it is a maven project then the steps
might look like
a) execute mvn install
b) java -jar target/webapp.jar
c) curl --location --request GET 'http://localhost:8080/facts/dog'

BUDGET IS ONLY -300 rs