By default, CreateAPI will use Get for the API client. If you are generating a package, this dependency is setup for you automatically but if you are generating for an existing module, you will need to manage dependencies yourself.
Below is a table that describes dependencies that CreateAPI generated code might need to use:
Dependency | Minimum Version | Required When? |
---|---|---|
Get | 1.0.2 | Generating Paths* |
URLQueryEncoder | 0.0.2 | Generating paths with query parameters |
HTTPHeaders | 0.1.0 | includeResponseHeaders is set to true (the default) |
NaiveDate | 1.0.0 | useNaiveDate is set to true (the default) |
Note: *If you are already using a different API client and don't want to have to depend on Get, check out the Advanced Setup documentation.