Skip to content

Commit fd8e8a4

Browse files
sapklafriks
authored andcommitted
Improve swagger doc (#2274)
* Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
1 parent 951c909 commit fd8e8a4

32 files changed

+1946
-145
lines changed

modules/context/api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ type APIForbiddenError struct {
5151
// swagger:response notFound
5252
type APINotFound struct{}
5353

54+
//APIRedirect is a redirect response
55+
// swagger:response redirect
56+
type APIRedirect struct{}
57+
5458
// Error responses error message to client with given message.
5559
// If status is 500, also it prints error to log.
5660
func (ctx *APIContext) Error(status int, title string, obj interface{}) {

0 commit comments

Comments
 (0)