| Crates.io | crud |
| lib.rs | crud |
| version | 0.1.7 |
| created_at | 2022-12-31 11:35:32.156298+00 |
| updated_at | 2025-04-05 08:42:00.219937+00 |
| description | CLI generator for your favorite CRUD REST API. |
| homepage | https://github.com/djedi23/crud.rs |
| repository | https://github.com/djedi23/crud.rs |
| max_upload_size | |
| id | 748388 |
| size | 79,736 |
This crate provides a framework to generate an executable to manipulate your REST HTTP API from CLI.
Have a look to the examples directory.
Per endpoint options.
route="/myroute"nested(route = "/another_endpoint/{id}/here"))id: Mark this field as id
long: Long name of the option
short: Short name of the option
no_short: Don't generate a short option
heading: Category of the option
help: Short help string
long_help: Long help text
table_skip: THE field won't appears when display as the table
File settings.toml
| option | description | |
|---|---|---|
| base_url | Base url of the api | |
| auth_token | token send as bearer | read by crud-auth-bearer |
In settings.toml, you can define multiple profiles:
[profile.p1]
base_url="..."
uth_token="..."
[profile.p2]
base_url="..."
uth_token="..."
You call the profiles with the --profile argument.