AnnotationsApi: GET /api/annotations/:annotationId (#47739)

This commit is contained in:
Scott Bock
2022-05-16 10:16:36 -05:00
committed by GitHub
parent 2d4065600c
commit 3d922a4e67
4 changed files with 55 additions and 0 deletions

View File

@ -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