Skip to content

alongwill/flask-digest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple Flask server with REST endpoints

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published