boaviztapi-sdk-rust
Rust client library for Boaviztapi.
Documentation
Boavizta API documentation
How to generate / update the API
API is generated from the published openAPI specification of Boaviztapi (http://api.boavizta.org/openapi.json).
We use openapi-generator-cli to generate the SDK. See GitHub - OpenAPITools/openapi-generator-cli: A node package wrapper for https://github.com/OpenAPITools/openapi-generator .
The generated code require some manual updates before being usable.
Update the Cargo.toml
Metadata of Cargo.toml are overwritten by generation.
- verify that version of package is consistent
- update it with the following values
= "A Rust client/sdk to access Boavizta API"
= "https://boavizta.org"
= "https://github.com/Boavizta/boaviztapi-sdk-rust/"
= "README.md"
= ["boavizta.org", "olivier de Meringo"]
= "2018"
= "LICENSE"
Ensure that the dependency on reqwest does not use native SSL(the default feature), but uses rust-tls . It makes cross compiling so much easier.
[]
= "^0.11"
= false
= ["json", "multipart", "rustls-tls"]
Update generated code
Use cargo clippy or cargo check to check that the generated code compiles.
⚠ The following (useful when generating for API v0.1.2) does not seem necessary anymore with API v0.2.x series).
# Only use the following command on generated code for v0.1.x API