Wrong REST API endpoint for Alert Provisioning in Swagger-UI (api is mentioned twice in URL)

Hello,
I am new to Grafana REST API but I think API endpoint is wrong in Swagger-UI for alert provisioning. As you can see on picture, api is mentioned twice and this endpoint does not exist. Other API endpoints are correctly formed (api is mentioned only once e.g. in GET /datasources).

 

  • What Grafana version and what operating system are you using?
    Grafana version: 10.1.2 OSS (latest)
    OS : Fedora 36

 

  • What are you trying to achieve?
    I wanted to use Swagger-UI ( http://hostname:3000/swagger-ui#/provisioning/RouteGetAlertRules ) in order to GET alert rules but I end up with error message { "message": "Not found" } because endpoint is wrongly formatted (as shown on upper picture).

 

  • How are you trying to achieve it?

  • What happened?
    I got error message { "message": "Not found" } and didn’t get alert rules.

 

  • What did you expect to happen?
    I expect that I will get list of Alert Rules instead of error message.

 

  • Can you copy/paste the configuration(s) that you are having problems with?
Picture

 

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
    I got error message { "message": "Not found" }.

  • Did you follow any online instructions? If so, what is the URL?

 

Best regards,
ldrascic