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

Waiting time API at OPT.nc

adriens profile image SALES ・1 min read

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

Discussion

pic
Editor guide