I want to create an app to use API Layer for currency exchange. I used a API key of Exchange Rates Data API in apilayer.com.
When I send a request to Get Rates defined in postman_collection in my repo.
I get this error message shown below
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "message" (class com.exchangeapi.currencyexchange.exception.RestTemplateError), not marked as ignorable (4 known properties: "error", "status", "path", "timestamp"]) at [Source: (String)"{"message":"No API key found in request"}"; line: 1, column: 42] (through reference chain: com.exchangeapi.currencyexchange.exception.RestTemplateError["message"])
Here is the link : https://stackoverflow.com/questions/76300394/cannot-detect-api-key-from-env-in-my-spring-boot-app
How can I fix it?
I want to create an app to use API Layer for currency exchange. I used a API key of Exchange Rates Data API in apilayer.com.
When I send a request to Get Rates defined in postman_collection in my r...