7 releases
0.1.6 | Mar 19, 2024 |
---|---|
0.1.5 | Sep 24, 2023 |
0.1.4 | Jul 20, 2023 |
0.1.3 | Jun 12, 2023 |
0.1.0 | Dec 31, 2022 |
#1657 in Network programming
150KB
3.5K
SLoC
CRUD
This crate provides a framework to generate an executable to manipulate your REST HTTP API from CLI.
Have a look to the examples directory.
Options
Crud Options
Per endpoint options.
- route : route prefix.
route="/myroute"
- nested: Nested link to this endpoind. example:
nested(route = "/another_endpoint/{id}/here"))
- parameters: Parameter struct that is passed in the query string
- help: Help string
Field Options
- 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
Runtime Settings
File settings.toml
option | description | |
---|---|---|
base | Base url of the api | |
auth_token | token send as bearer | read by crud-auth-bearer |
Dependencies
~23–36MB
~568K SLoC