Skip to content

Latest commit

 

History

History
32 lines (25 loc) · 642 Bytes

README.md

File metadata and controls

32 lines (25 loc) · 642 Bytes

flask-digest

Simple Flask server with REST endpoints

Running

docker-compose up

Testing

Add a message and retrieve it's digest

curl --cacert localhost.crt -X POST -H "Content-Type: application/json" -d '{"message": "foo"}' https://localhost:5000/messages
{
  "digest": "2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae"
}

Lookup a message from it's digest

curl --cacert localhost.crt https://localhost:5000/messages/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae
{
  "message": "foo"
}

Versions

Tested with:

  • Docker Engine CE 18.09.1
  • Docker Compose 1.23.2