crud

Crates.iocrud
lib.rscrud
version0.1.6
sourcesrc
created_at2022-12-31 11:35:32.156298
updated_at2024-03-19 06:31:36.261142
descriptionCLI generator for your favorite CRUD REST API.
homepagehttps://github.com/djedi23/crud.rs
repositoryhttps://github.com/djedi23/crud.rs
max_upload_size
id748388
size69,210
Moïse Valvassori (djedi23)

documentation

README

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
Commit count: 48

cargo fmt