In a Docker environment using Postgres, after importing a new API with the attached file Kafka-1-0-0.json, the API List in Console shows that the API is V4, but its type is Undefined.
Unable to render embedded object: File (/rest/api/3/attachment/content/15000) not found.
Solution: The field type was not being mapped for JDBC installations for the method search. Once adding type to the projection, it is returned to the user via MAPI-V2 and can then be used by the console to display the API type.
In a Docker environment using Postgres, after importing a new API with the attached file
Kafka-1-0-0.json
, the API List in Console shows that the API isV4
, but its type isUndefined
.Unable to render embedded object: File (/rest/api/3/attachment/content/15000) not found.
[!/rest/api/3/attachment/content/15000!|/rest/api/3/attachment/content/15000]
Instead, it should show
V4 - Message
.This has been observed when denoting the
APIM_VERSION
as4.2.6
and4.2.x-latest
.It is reproducible with any type of V4 API.
Initially mentioned in slack conversation: https://graviteeio.slack.com/archives/C01R65MG162/p1711719539127129
Solution: The field
type
was not being mapped for JDBC installations for the methodsearch
. Once addingtype
to the projection, it is returned to the user via MAPI-V2 and can then be used by the console to display the API type.