Repository navigation
[1.15.1] 2026-11-25
Added
- New option
-credentialTypeforapp getto export only applications having at least one credential of the given type
(#601). Supported types areoauth,apikeysandextclients; several
types can be given comma separated, e.g.apim app get -s api-env -credentialType oauth -o json -t /tmp/exported_apps. The option can be combined
with-credentialand-redirectUrl, in which case the matching credential must be of the given type. APIImportAppreturns the details of an error (#594). Applications, which use
the class to import APIs (e.g. in a service used by a CI/CD pipeline), get the error code, the name of the error, the message and the details of the
underlying causes instead of only the return code:APIImportApp.importAPIwithDetails(params)returns a one-line JSON, e.g.
{"errorCode":25,"error":"CANT_SEND_HTTP_REQUEST","mappedErrorCode":25,"message":"Can't login to API-Manager","details":["Connect to https://localhost:8075 failed: Connection refused"]}.
mappedErrorCodeis the return code of the CLI, which differs fromerrorCodeif-returnCodeMappingis used.- The CLI prints the same one-line JSON to stderr, if
api importfails and the environment variableprint_error_details=trueis set. Nothing changes if the
variable is not set.
Fixed
- Applications with the same name (in the same or in different organizations) were not all exported by
app get: the second application was
skipped, or with-deleteTargetreplaced the export of the first one, as the export folder was derived from the application name only
(#600). Each application is now exported into its own folder; a repeated
name gets a numeric suffix (My-App,My-App_1,My-App_2). This applies to the JSON and YAML export. - Updating the quota of an API corrupted restrictions that use the same method, e.g. a
throttleand athrottlembrestriction for*
(#592). Restrictions were matched by method only, which turned
one restriction into the other. They are now identified by method, type, period and per. Restrictions of the same type and method with a different
period (e.g. 100 messages per second and 10000 messages per day) are kept apart. Changing the limit updates the restriction, changing
the type, period or per replaces it. - Application quota restrictions of different APIs, which are given by
apiPath, were all applied to the first API. The API lookup reused
the cached response of a previous lookup by another API path, as the cache key of the API filter ignored the API path
(#567). The same applies to any other lookup of APIs byapiPath,
state,deprecated,retiredorcreatedOnwithin one execution. - Updating an API failed with "No operation found with name: ''" if an inbound or outbound profile exists for a specific operation and the API
is updated more than once during an import, for example when the backendBasepath is changed together with other properties
(#581). - OpenAPI 3.1 specifications with
resolve_openapi_ref=truefailed silently on import (#582):- The resolved specification was ignored, as the original specification was used after resolving the references.
- The resolved OpenAPI 3.1 model was serialized with a plain Jackson mapper instead of the one of swagger-core, which fails for
boolean schemas likeadditionalProperties: false. Mixed up swagger library versions (NoSuchMethodErrorforbooleanSchemaValue)
were fixed by aligning swagger-models and swagger-core. - Errors while resolving the references now fail the import with a message. References are only resolved for OpenAPI 3.x specifications.
- Errors thrown by a command, which are no longer lost silently, are now logged by the CLI.
Changed
- Improved the performance of commands loading remote hosts, like
api get,api importand the settings export. The users (createdBy) and organizations
of remote hosts are only loaded for the requested remote hosts, instead of one by one (/users/{id}) for all remote hosts on every
lookup (#462). - Upgraded dependencies:
- swagger-parser 2.1.19 to 2.1.48
- swagger-models 2.2.0 to 2.2.55 (swagger-core 2.2.55 is now managed as well). The 3.x line of swagger-models requires
Jackson 3 and is not supported by swagger-parser yet, so it is not used. - Ehcache 3.10.8 to 3.12.0, now using its
jakartabuild together withjaxb-runtime4.0.9 (jakarta.xml.bind) instead of
the javax basedjaxb-runtime2.3.9 to readcacheConfig.xml. A customizedconf/cacheConfig.xmlkeeps working.
Removed
- OData support was removed. Passing an OData
$metadata/ EDMX document (OData V2, V3 and V4) as the API
definition ofapi importis no longer supported and fails with a message pointing to the replacement.
The conversion was built on Apache Olingo, which is no longer maintained. It moved to
the separate projectapim-cli-odata, which converts OData V2/V4 metadata into an OpenAPI 3 specification:Convert the metadata first, then import the resulting OpenAPI file with the CLI as usual. Everything else aboutapim-odata convert -m <metadata file or URL> -b <backend of the OData service> -o openapi.json
importing such an API stays the same. The OData-Routing policy is still required for these APIs. API-Specification
filters can still be applied, as they now work on the converted OpenAPI file. - Removed the OData example configurations from
examples/basicand the Apache Olingo dependencies.