mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-27 05:49:04 +01:00
Move swagger comment from TagJobApiRequest to Tag
This commit is contained in:
parent
24f374ed36
commit
9f9462496a
@ -112,13 +112,14 @@ type ErrorResponse struct {
|
|||||||
Error string `json:"error"` // Error Message
|
Error string `json:"error"` // Error Message
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tag model
|
||||||
|
// @Description Defines a tag using name and type.
|
||||||
type Tag struct {
|
type Tag struct {
|
||||||
|
// Tag Type
|
||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"` // Tag Name
|
||||||
}
|
}
|
||||||
|
|
||||||
// TagJobApiRequest model
|
|
||||||
// @Description Array of tag-objects for request payload
|
|
||||||
type TagJobApiRequest []*Tag
|
type TagJobApiRequest []*Tag
|
||||||
|
|
||||||
func handleError(err error, statusCode int, rw http.ResponseWriter) {
|
func handleError(err error, statusCode int, rw http.ResponseWriter) {
|
||||||
|
Loading…
Reference in New Issue
Block a user