• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

a1y-developer / doc-formatter / 19754786915

28 Nov 2025 05:14AM UTC coverage: 51.208%. First build
19754786915

Pull #9

github

web-flow
Merge 9ff9bab70 into 6cfe6b24d
Pull Request #9: Swagger refactoring

0 of 3 new or added lines in 1 file covered. (0.0%)

318 of 621 relevant lines covered (51.21%)

0.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/docs/docs.go
1
// Package docs Code generated by swaggo/swag. DO NOT EDIT
2
package docs
3

4
import "github.com/swaggo/swag"
5

6
const docTemplate = `{
7
    "schemes": {{ marshal .Schemes }},
8
    "swagger": "2.0",
9
    "info": {
10
        "description": "{{escape .Description}}",
11
        "title": "{{.Title}}",
12
        "contact": {},
13
        "version": "{{.Version}}"
14
    },
15
    "host": "{{.Host}}",
16
    "basePath": "{{.BasePath}}",
17
    "paths": {
18
        "/api/v1/auth/login": {
19
            "post": {
20
                "description": "Login user and return JWT token",
21
                "consumes": [
22
                    "application/json"
23
                ],
24
                "produces": [
25
                    "application/json"
26
                ],
27
                "tags": [
28
                    "Auth"
29
                ],
30
                "summary": "Login",
31
                "parameters": [
32
                    {
33
                        "description": "Login payload",
34
                        "name": "body",
35
                        "in": "body",
36
                        "required": true,
37
                        "schema": {
38
                            "$ref": "#/definitions/request.LoginRequest"
39
                        }
40
                    }
41
                ],
42
                "responses": {
43
                    "200": {
44
                        "description": "OK",
45
                        "schema": {
46
                            "$ref": "#/definitions/response.LoginResponse"
47
                        }
48
                    },
49
                    "400": {
50
                        "description": "Bad Request",
51
                        "schema": {
52
                            "type": "object",
53
                            "additionalProperties": {
54
                                "type": "string"
55
                            }
56
                        }
57
                    },
58
                    "401": {
59
                        "description": "Unauthorized",
60
                        "schema": {
61
                            "type": "object",
62
                            "additionalProperties": {
63
                                "type": "string"
64
                            }
65
                        }
66
                    },
67
                    "500": {
68
                        "description": "Internal Server Error",
69
                        "schema": {
70
                            "type": "object",
71
                            "additionalProperties": {
72
                                "type": "string"
73
                            }
74
                        }
75
                    }
76
                }
77
            }
78
        },
79
        "/api/v1/auth/signup": {
80
            "post": {
81
                "description": "Create a new user account",
82
                "consumes": [
83
                    "application/json"
84
                ],
85
                "produces": [
86
                    "application/json"
87
                ],
88
                "tags": [
89
                    "Auth"
90
                ],
91
                "summary": "Signup",
92
                "parameters": [
93
                    {
94
                        "description": "Signup payload",
95
                        "name": "body",
96
                        "in": "body",
97
                        "required": true,
98
                        "schema": {
99
                            "$ref": "#/definitions/request.SignupRequest"
100
                        }
101
                    }
102
                ],
103
                "responses": {
104
                    "201": {
105
                        "description": "Created",
106
                        "schema": {
107
                            "$ref": "#/definitions/response.SignUpResponse"
108
                        }
109
                    },
110
                    "400": {
111
                        "description": "Bad Request",
112
                        "schema": {
113
                            "type": "object",
114
                            "additionalProperties": {
115
                                "type": "string"
116
                            }
117
                        }
118
                    },
119
                    "500": {
120
                        "description": "Internal Server Error",
121
                        "schema": {
122
                            "type": "object",
123
                            "additionalProperties": {
124
                                "type": "string"
125
                            }
126
                        }
127
                    }
128
                }
129
            }
130
        }
131
    },
132
    "definitions": {
133
        "request.LoginRequest": {
134
            "type": "object",
135
            "required": [
136
                "email",
137
                "password"
138
            ],
139
            "properties": {
140
                "email": {
141
                    "type": "string"
142
                },
143
                "password": {
144
                    "type": "string",
145
                    "minLength": 6
146
                }
147
            }
148
        },
149
        "request.SignupRequest": {
150
            "type": "object",
151
            "required": [
152
                "email",
153
                "password"
154
            ],
155
            "properties": {
156
                "email": {
157
                    "type": "string"
158
                },
159
                "password": {
160
                    "type": "string",
161
                    "minLength": 6
162
                }
163
            }
164
        },
165
        "response.LoginResponse": {
166
            "type": "object",
167
            "properties": {
168
                "access_token": {
169
                    "type": "string"
170
                },
171
                "expiry_unix": {
172
                    "type": "integer"
173
                }
174
            }
175
        },
176
        "response.SignUpResponse": {
177
            "type": "object",
178
            "properties": {
179
                "user_id": {
180
                    "type": "string"
181
                }
182
            }
183
        }
184
    }
185
}`
186

187
// SwaggerInfo holds exported Swagger Info so clients can modify it
188
var SwaggerInfo = &swag.Spec{
189
        Version:          "1.0",
190
        Host:             "",
191
        BasePath:         "/",
192
        Schemes:          []string{},
193
        Title:            "AI Doc Formatter API Gateway",
194
        Description:      "API Gateway for Doc Formatter",
195
        InfoInstanceName: "swagger",
196
        SwaggerTemplate:  docTemplate,
197
        LeftDelim:        "{{",
198
        RightDelim:       "}}",
199
}
200

NEW
201
func init() {
×
NEW
202
        swag.Register(SwaggerInfo.InstanceName(), SwaggerInfo)
×
NEW
203
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc