-
Notifications
You must be signed in to change notification settings - Fork 0
/
authorize.go
45 lines (39 loc) · 926 Bytes
/
authorize.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
43
44
45
package swagger
import (
"github.com/antonio-alexander/go-blog-cors/internal"
)
// swagger:route POST /authorize cors authorize
// Approximates a basic authorization endpoint.
//
// Consumes:
// - application/json
//
// Produces:
// - application/json
//
// Security:
// - basic
//
// Schemes: http, https
//
// responses:
// 200: AuthorizePostResponseOK
// 401: AuthorizePostResponseNotAuthorized
// 500: AuthorizePostResponseError
// swagger:response AuthorizePostResponseOK
type AuthorizePostResponseOK struct {
// in:body
Body internal.Message
}
// swagger:response AuthorizePostResponseNotAuthorized
type AuthorizePostResponseNotAuthorized struct {
// in:body
Body internal.Error
}
// swagger:response AuthorizePostResponseError
type AuthorizePostResponseError struct {
// in:body
Body internal.Error
}
// swagger:parameters cors authorize
type AuthorizePostParams struct{}