-
Notifications
You must be signed in to change notification settings - Fork 0
/
changes_get.go
42 lines (37 loc) · 912 Bytes
/
changes_get.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package swagger
import (
"github.com/antonio-alexander/go-bludgeon/changes/data"
"github.com/antonio-alexander/go-bludgeon/internal/errors"
)
// swagger:route GET /changes/{change_id} changes get_change
// Reads an change using its id.
//
// Consumes:
// - application/json
//
// Produces:
// - application/json
//
// Schemes: http
//
// responses:
// 200: ChangeGetResponseOk
// 404: ChangeGetResponseNotFound
// This response is provided when the change is found
// swagger:response ChangeGetResponseOk
type ChangeGetResponseOk struct {
// in:body
Body data.Change
}
// This respons is provided when a change is not found
// swagger:response ChangeGetResponseNotFound
type ChangeGetResponseNotFound struct {
// in:body
Body errors.Error
}
// swagger:parameters get_change
type ChangeGetParams struct {
// The id of a change
// in:path
ChangeId string `json:"change_id"`
}