feat: add api test cli

This commit is contained in:
2026-06-13 11:08:23 +02:00
parent ce959b59bf
commit d6fc3bdd4b
2 changed files with 286 additions and 0 deletions

View File

@@ -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