Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 534d901

Browse files
committed
correct GET /api/annotations path
This corrects the [GET /api/annotations](https://grafana.com/docs/grafana/latest/http_api/annotations/) URL path. The correct path is `/api/annotations` and not `/api/annotation`. For further context, see: grafana/terraform-provider-grafana#11 (comment) Signed-off-by: Mike Ball <mikedball@gmail.com>
1 parent c957748 commit 534d901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

annotation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type GraphiteAnnotation struct {
3838
// Annotations fetches the annotations queried with the params it's passed
3939
func (c *Client) Annotations(params url.Values) ([]Annotation, error) {
4040
result := []Annotation{}
41-
err := c.request("GET", "/api/annotation", params, nil, &result)
41+
err := c.request("GET", "/api/annotations", params, nil, &result)
4242
if err != nil {
4343
return nil, err
4444
}

0 commit comments

Comments
 (0)