Uma API construída utulizando o FastAPI para gerar senhas seguras e personalizaveis.
- iniciar o venv
python3 -m venv venv
- habilitar o venv
source venv/bin/activate
- Instale as dependências:
pip install fastapi["standard"]
- Execute:
fastapi run app.py
- Acesse a documentação em
http://localhost:8000/docs
curl -X POST "http://localhost:8000/generate-password" \
-H "Content-Type: application/json" \
-d '{"length": 16, "include_uppercase": true, "include_lowercase": true, "include_numbers": true, "include_symbols": true}'; echo ""
- Instale o programa
- faça uma requisição no body utilizando json ex:
{
"length": 10,
"include_uppercase": true,
"include_lowercase": true,
"include_numbers": true,
"include_symbols": true
}