mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-27 21:27:01 +00:00
fix: 'id' key incorrectly passed as 'insert' for some endpoints, refactor with macros
This commit is contained in:
parent
beb267d5b5
commit
dac4c946f5
4 changed files with 283 additions and 1000 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
|
@ -110,7 +110,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "ckanaction"
|
name = "ckanaction"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bon",
|
"bon",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "ckanaction"
|
name = "ckanaction"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
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"
|
||||||
|
|
|
||||||
1278
src/lib.rs
1278
src/lib.rs
File diff suppressed because it is too large
Load diff
|
|
@ -15,6 +15,7 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
#[ignore = "Set values for const at top of tests file locally."]
|
||||||
async fn status_show() -> Result<(), Box<dyn std::error::Error>> {
|
async fn status_show() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let ckan = get_ckan_builder().await;
|
let ckan = get_ckan_builder().await;
|
||||||
let response = ckan.status_show().await?;
|
let response = ckan.status_show().await?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue