feat: add api test cli
This commit is contained in:
11
README.md
11
README.md
@@ -33,6 +33,17 @@ cargo run
|
||||
|
||||
The API listens on `0.0.0.0:5000` by default.
|
||||
|
||||
## CLI helper
|
||||
|
||||
With the API running in another terminal, call it through the small helper binary:
|
||||
|
||||
```bash
|
||||
cargo run --bin pokedex-cli -- health
|
||||
cargo run --bin pokedex-cli -- pokemon mewtwo
|
||||
cargo run --bin pokedex-cli -- translated mewtwo
|
||||
cargo run --bin pokedex-cli -- --base-url http://localhost:5000 pokemon pikachu
|
||||
```
|
||||
|
||||
## Endpoints
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user