https://github.com/kometen/rocket_tutorial
A Rust-REST-api to generate passwords
https://github.com/kometen/rocket_tutorial
Last synced: 3 months ago
JSON representation
A Rust-REST-api to generate passwords
- Host: GitHub
- URL: https://github.com/kometen/rocket_tutorial
- Owner: kometen
- Created: 2024-08-18T20:16:55.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T08:34:46.000Z (9 months ago)
- Last Synced: 2025-01-11T01:14:57.767Z (5 months ago)
- Language: Rust
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A small REST-endpoint generating passwords.
Based on Rust and the Rocket web-framework and the password crate passwords.
Build and run the docker-image
```
docker build -t rocket_tutorial:dev .
docker run -p 8000:8000 rocket_tutorial:dev
```Syntax: `curl localhost:8000/pwd/14`
Calling `/pwd` will return five passwords. Calling `/pwd/x` will return up to 31 passwords.
Swagger UI at `/swagger-ui`.
Rocket framework: https://rocket.rs/
Password-crate: https://docs.rs/passwords/latest/passwords/index.html