An open API service indexing awesome lists of open source software.

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

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