DEV Community

Cover image for Waiting time API at OPT.nc
adriens
adriens

Posted on

Waiting time API at OPT.nc

Context

Just using this post to share the API usage with collaborators. This shows how to locally deploy and use the API to get waiting times in agencies.

Run it!

To be up and running, just:

docker pull rastadidi/opt-temps-attente-agences-api:latest
docker images
docker run -d -p 8081:8081 rastadidi/opt-temps-attente-agences-api:latest
docker ps

# Pour essayer l'API
sudo apt-get install httpie jq -y
http http://127.0.0.1:8081/temps-attente/agence/4161
http http://127.0.0.1:8081/temps-attente/agence/4161 | jq '.idAgence'
Enter fullscreen mode Exit fullscreen mode

Resources

Top comments (0)