A simple FastAPI application to generate random passwords of specified length.
You should have installed python3 and Git
- Clone the project from GitHub
git clone https://github.com/koushikromel/fluvi-task1.git
- Install the required dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn main:app --host 0.0.0.0 --port 3000
- Generate Password
Generate random password with specified length
- Method: GET
- Endpoint: http://0.0.0.0:3000/generate_password
- Parameters:
- max_length: int
- Request: GET /generate_password
- Response:
{ "password": "nzZKFk3NNVtDKsA0rzUQcz6" }
This Project is licensed under the MIT License - see the License file for details.