Sometimes, I need to travel in Europe or cross the Atlantic ocean but after 2 years of COVID, before travelling I need to review the country restrictions defined for travellers.
This example show how to see COVID restrictions in a particular country.
Register in Amadeus for Developers to get your AMADEUS_CLIENT_ID
& AMADEUS_CLIENT_SECRET
Export the values:
export AMADEUS_CLIENT_ID=YOUR_CLIENT_ID
export AMADEUS_CLIENT_SECRET=YOUR_CLIENT_SECRET
mvn spring-boot:run
mvn clean package
java -jar ./target/spring-boot-amadeus-sdk-demo-0.1.0-SNAPSHOT.jar
curl 'http://localhost:8080/api/v1/covid-restrictions?country-code=ES'
mvn spring-boot:build-image
docker build -t docker.io/library/spring-boot-amadeus-sdk-demo:0.1.0-SNAPSHOT .
docker run -p 8080:8080 \
-e AMADEUS_CLIENT_ID=$AMADEUS_CLIENT_ID \
-e AMADEUS_CLIENT_SECRET=$AMADEUS_CLIENT_SECRET \
-t docker.io/library/spring-boot-amadeus-sdk-demo:0.1.0-SNAPSHOT
To test the container, you need to get the IP from the container:
docker-machine ip xxx
With that IP, you can execute curl without any issue:
curl 'http://IP_FROM_CONTAINER:8080/api/v1/covid-restrictions?country-code=ES'
mvn prettier:write
mvn versions:display-dependency-updates