Small Web Service that generate SHA256 key for message and keep these messages on hashmap with these folowing endpoints
-
/messages takes a message (a string) as a POST and returns the SHA256 hash digest of that message (in hexadecimal format)
-
/messages/ is a GET request that returns the original message. A request to a non-existent should return a 404 error.
https://hello-world-2-nedixiihoq-uc.a.run.app
To build the Docker image, run this following command:
docker build -t my-flask-app.
Once the Docker image is built, you can run it with the following command: docker run -p 5000:5000 my-flask-app