Steps to reproduce the problem
- Set API key in env variable
POLYGON_API_KEY
or replace this lineString polygonKey = System.getenv("POLYGON_API_KEY");
in./src/main/java/com/example/demo/Controller
- mvn clean package (build the service with maven)
- java -jar target/demo-0.0.1-SNAPSHOT.jar (run the project with java)
- open http://localhost:8080/test (hit the endpoint to trigger polygon call)