20def38e96
show how to generally start a daemon that serves a rest api + index page api calls are (prefixed with either /api2/json or /api2/extjs): / GET listing /ping GET returns "pong" /items GET lists existing items POST lets user create new items /items/{id} GET returns the content of a single item PUT updates an item DELETE deletes an item Contains a small dummy user/authinfo Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
37 lines
952 B
TOML
37 lines
952 B
TOML
[package]
|
|
name = "proxmox-rest-server"
|
|
version = "0.1.0"
|
|
authors = ["Proxmox Support Team <support@proxmox.com>"]
|
|
edition = "2018"
|
|
description = "REST server implementation"
|
|
|
|
# for example
|
|
[dev-dependencies]
|
|
proxmox = { version = "0.13", features = ["router","api-macro"] }
|
|
tokio = { version = "1.6", features = [ "rt-multi-thread", "signal", "process" ] }
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
futures = "0.3"
|
|
handlebars = "3.0"
|
|
http = "0.2"
|
|
hyper = { version = "0.14.5", features = [ "full" ] }
|
|
lazy_static = "1.4"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
nix = "0.19.1"
|
|
once_cell = "1.3.1"
|
|
percent-encoding = "2.1"
|
|
regex = "1.2"
|
|
serde = { version = "1.0", features = [] }
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.6", features = ["signal", "process"] }
|
|
tokio-openssl = "0.6.1"
|
|
tower-service = "0.3.0"
|
|
url = "2.1"
|
|
|
|
proxmox = { version = "0.13.5", features = [ "router"] }
|
|
|
|
# fixme: remove this dependency (pbs_tools::broadcast_future)
|
|
pbs-tools = { path = "../pbs-tools" }
|