mirror of
https://github.com/dathere/ckanaction.git
synced 2026-05-20 09:54:14 +00:00
feat: add package_show
This commit is contained in:
parent
1de1b7e2a0
commit
f0a8dc13bc
3 changed files with 13 additions and 2 deletions
11
src/lib.rs
11
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<bool>,
|
||||
include_plugin_data: Option<bool>,
|
||||
) -> Result<serde_json::Value, Box<dyn std::error::Error>> {
|
||||
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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue