Service for transferring secrets over http on FastAPI
Ready for heroku
- docker-compose
- python 3.9
make install
make test
make lint
make format
make start
make stop
- Curl
curl -X 'POST' \
'http://0.0.0.0:5000/create_secret' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"expire": 10000,
"message": "some message",
"password": "01234"
}'
- Response body
{
"expire": 10000,
"token": "116cf556-3d80-4e19-ba2c-5d6dd8008a00"
}
- Curl
curl -X 'POST' \
'http://0.0.0.0:5000/check_secret/116cf556-3d80-4e19-ba2c-5d6dd8008a00' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"password": "01234"
}'
- Response body
{
"message": "some message",
"success": true
}