mirror of
https://github.com/dathere/ckanaction.git
synced 2026-02-04 10:05:33 +00:00
Compare commits
No commits in common. "143b1b9863e6812a6f2556d784ce3953b5185a78" and "6df4f863f1c30dae24867bd6a321ed5241271f73" have entirely different histories.
143b1b9863
...
6df4f863f1
7 changed files with 420 additions and 2138 deletions
771
Cargo.lock
generated
771
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
12
Cargo.toml
12
Cargo.toml
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ckanaction"
|
name = "ckanaction"
|
||||||
version = "0.1.3"
|
version = "0.1.2"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
description = "Rust library crate featuring an API wrapper of the CKAN Action v3 API."
|
description = "Rust library crate featuring an API wrapper of the CKAN Action v3 API."
|
||||||
repository = "https://github.com/dathere/ckanaction"
|
repository = "https://github.com/dathere/ckanaction"
|
||||||
|
|
@ -11,10 +11,10 @@ categories = ["api-bindings", "asynchronous"]
|
||||||
exclude = ["/docs"]
|
exclude = ["/docs"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bon = "3.8.2"
|
bon = "3.6.3"
|
||||||
reqwest = { version = "0.12.28", features = ["json", "multipart", "stream"] }
|
reqwest = { version = "0.12.15", features = ["json", "multipart", "stream"] }
|
||||||
serde = "1.0.228"
|
serde = "1.0.219"
|
||||||
serde_json = "1.0.149"
|
serde_json = "1.0.140"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tokio = { version = "1.49.0", features = ["full"] }
|
tokio = { version = "1.45.1", features = ["full"] }
|
||||||
|
|
|
||||||
2
examples/status-show/.gitignore
vendored
2
examples/status-show/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
||||||
.env
|
|
||||||
target/
|
|
||||||
1742
examples/status-show/Cargo.lock
generated
1742
examples/status-show/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "status-show"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2024"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
ckanaction = "0.1.3"
|
|
||||||
tokio = { version = "1.49.0", features = ["full"] }
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# Example of using ckanaction to run the /status_show API endpoint
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Run the following command to run the `/status_show` CKAN Action API endpoint on `http://localhost:5000` and print the formatted debug output.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cargo run
|
|
||||||
```
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
#[tokio::main]
|
|
||||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
||||||
|
|
||||||
// Initialize and build CKAN struct
|
|
||||||
let ckan = ckanaction::CKAN::builder()
|
|
||||||
.url("http://localhost:5000")
|
|
||||||
.build();
|
|
||||||
|
|
||||||
// Send request to /status_show and print formatted debug output
|
|
||||||
let status_show = ckan.status_show().await?;
|
|
||||||
println!("{status_show:#?}");
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue