generate_pkg_paths()now generatesnectar::tidy_policy_json(simplifyVector = TRUE)(withsubset_pathwhen applicable) instead ofnectar::tidy_policy_json_tibblify()when the response spec has zero fields or a single non-nested field (#125).
- New generation functions
generate_pkg_auth(),generate_pkg_paths(),generate_pkg_req_prepare(), andgenerate_pkg_shared_params()allow for more modular API-wrapping package generation (#101). - New read functions
read_api_abbr(),read_api_definition(),read_api_title(),read_config(),read_rapid_filename(),read_security_data(),read_security_data_filename(), andread_security_schemes()extract pieces needed for building an API-wrapping package (#82, #99). generate_pkg_paths()now generates a separate R file for each endpoint, rather than a single file per tag (#65).generate_pkg_paths()also includes parameter documentation, and parameter validation to prevent users from creating API calls that will fail due to passing the wrong parameter type (#69, #85).- Header and cookie parameters are handled properly by
generate_pkg_paths()(#84). - All functions now have examples, and example configuration data is available in
fs::path_package("beekeeper", "guru")andfs::path_package("beekeeper", "trello")(#99).
- Added basic scaffolding of endpoint functions ("paths" objects in the OpenAPI specification).
- Added
vignette("pagination")for guidance on how to configure pagination inbeekeeper-generated packages.
- Spun off a separate project for API discovery.
- Basic functionality for creating an api-wrapping R package (#15, #16, #17, #26, #35).