| Crates.io | chef_api |
| lib.rs | chef_api |
| version | 0.2.0 |
| created_at | 2017-12-21 15:16:39.831999+00 |
| updated_at | 2017-12-21 15:16:39.831999+00 |
| description | Client for the Chef Server API |
| homepage | |
| repository | https://github.com/chef/rs-chef-api |
| max_upload_size | |
| id | 43840 |
| size | 53,374 |
This library implements the raw requests and authentication methods necessary to interact with a Chef Server.
See the Chef Server API documentation for further information on the possible requests.
You'll need a credentials file as documented in RFC 99.
To retrieve a list of cookbook names, first create an ApiClient and then make a
request to the cookbook endpoint:
use chef_api::api_client::{ApiClient, Execute};
let client = ApiClient::from_credentials(None).unwrap();
let cookbooks = client.cookbooks().get();
This crate uses serde to serialize requests from JSON, meaning
everything will return a serde_json::Value.
The chef crate provides models that are easier to work with.