API endpoint for querying supported plugin api version

Hi,

As far as I know, there is no API endpoint to query the sonar-plugin-api version supported by the server (regardless of the edition). However, I believe this would be an easy-to-implement feature and would be useful for plugin developers.

What I can do now to check the plugin api version for a certain Sonarqube release is looking it up in the README on github, but according to my experience it is not always updated (for example, the latest community version listed there is 26.5 while 26.7 is to be released at any moment).

Is there any chance to have such an endpoint or at least a line in one of the log files to indicate the plugin api version?

thanks,
Miki

Hi @magyarimiki,

There’s currently no dedicated API endpoint that exposes the sonar-plugin-api version at runtime that I’m aware of.

Your request for a dedicated endpoint seems likes a reasonable developer experience improvement, we see it come up every time a new LTA ships. I’ll flag it for the team.

In the meantime: if you’re targeting a specific version, the Community Build’s GitHub releases page also lists the bundled plugin API version in the release notes, which tends to be more up to date than the README table for CB-versioned releases.

Cheers,

Stevan

Hi, thanks for your suggestion about the API version in the release notes. I will use that and keep hoping that a new endpoint will be added :slight_smile: