mirror of
https://github.com/dathere/ckanaction.git
synced 2026-07-05 17:12:19 +00:00
chore: remove examples directory
This commit is contained in:
parent
a0a86219b5
commit
c341c02e73
10 changed files with 0 additions and 3791 deletions
2
examples/package-list/.gitignore
vendored
2
examples/package-list/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
.env
|
||||
target/
|
||||
1862
examples/package-list/Cargo.lock
generated
1862
examples/package-list/Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,8 +0,0 @@
|
|||
[package]
|
||||
name = "package-list"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
ckanaction = "0.2.0"
|
||||
tokio = { version = "1.52.2", features = ["full"] }
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
# Example of using ckanaction to run the /package_list API endpoint
|
||||
|
||||
## Usage
|
||||
the following command to run the `/package_list` CKAN Action API endpoint on `http://localhost:5000` and print the formatted debug output.
|
||||
|
||||
```bash
|
||||
cargo run
|
||||
```
|
||||
|
|
@ -1,15 +0,0 @@
|
|||
use ckanaction::CKANError;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), CKANError> {
|
||||
// Initialize and build CKAN struct
|
||||
let ckan = ckanaction::CKAN::builder()
|
||||
.url("http://localhost:5000")
|
||||
.build();
|
||||
|
||||
// Send request to /package_list and print formatted debug output
|
||||
let package_list = ckan.package_list().call().await?;
|
||||
println!("{package_list:#?}");
|
||||
|
||||
Ok(())
|
||||
}
|
||||
2
examples/status-show/.gitignore
vendored
2
examples/status-show/.gitignore
vendored
|
|
@ -1,2 +0,0 @@
|
|||
.env
|
||||
target/
|
||||
1862
examples/status-show/Cargo.lock
generated
1862
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.2.0"
|
||||
tokio = { version = "1.52.2", 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,15 +0,0 @@
|
|||
use ckanaction::CKANError;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), CKANError> {
|
||||
// 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