diff --git a/Cargo.lock b/Cargo.lock index 5328af3..a0ca36b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -75,7 +75,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "ckanaction" -version = "0.1.3" +version = "0.1.4" dependencies = [ "bon", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index e178190..f2af48f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ckanaction" -version = "0.1.3" +version = "0.1.4" edition = "2024" description = "Rust library crate featuring an API wrapper of the CKAN Action v3 API." repository = "https://github.com/dathere/ckanaction" diff --git a/src/lib.rs b/src/lib.rs index d1e5ef8..95a0cb8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -331,6 +331,17 @@ impl CKAN { ) } + /// https://docs.ckan.org/en/2.11/api/index.html#ckan.logic.action.get.package_show + #[builder] + pub async fn package_show( + &self, + id: String, + use_default_schema: Option, + include_plugin_data: Option, + ) -> Result> { + post!(&self, "package_show", (json id), use_default_schema, include_plugin_data) + } + /// https://docs.ckan.org/en/2.11/api/index.html#ckan.logic.action.get.resource_show #[builder] pub async fn resource_show(