mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 21:12:37 +08:00
AnnotationsApi: GET /api/annotations/:annotationId (#47739)
This commit is contained in:
@ -16,6 +16,15 @@ import (
|
||||
// 401: unauthorisedError
|
||||
// 500: internalServerError
|
||||
|
||||
// swagger:route GET /annotations/{annotation_id} annotations getAnnotation
|
||||
//
|
||||
// Get Annotation by Id.
|
||||
//
|
||||
// Responses:
|
||||
// 200: getAnnotationResponse
|
||||
// 401: unauthorisedError
|
||||
// 500: internalServerError
|
||||
|
||||
// swagger:route POST /annotations/mass-delete annotations massDeleteAnnotations
|
||||
//
|
||||
// Delete multiple annotations.
|
||||
@ -216,6 +225,13 @@ type GetAnnotationsResponse struct {
|
||||
Body []*annotations.ItemDTO `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:response getAnnotationResponse
|
||||
type GetAnnotationResponse struct {
|
||||
// The response message
|
||||
// in: body
|
||||
Body *annotations.ItemDTO `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:response createAnnotationResponse
|
||||
type CreateAnnotationResponse struct {
|
||||
// The response message
|
||||
|
Reference in New Issue
Block a user