-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
POSTing an annotation does not return its ID #9798
Comments
@roidelapluie can you include which files I can look at to get started since this is marked beginner friendly? |
@nadezhdamosunova Welcome! https://github.com/grafana/grafana/blob/master/pkg/api/annotations.go is a good start. |
So for returning the ID there are two options?
The first requires many changes in various files and the second seems like a hack. Is there another option? |
You can return an ok message and an id, done in a few other places, like when creating a new datasource |
for reference use this: https://github.com/grafana/grafana/blob/master/pkg/api/datasources.go#L123 |
…ion, fixes #9798 When creating a region annotation the response will include both id (region start id) and endId (region end id), if not only id.
fix: return id from api when creating new annotation, fixes #9798
When we POST an annotation with the http api
It would be great to get the ID of the new annotation in the response
The text was updated successfully, but these errors were encountered: