Skip to content

Commit

Permalink
Improve swagger doc (#2274)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sapk authored and lafriks committed Aug 21, 2017
1 parent 951c909 commit fd8e8a4
Show file tree
Hide file tree
Showing 32 changed files with 1,946 additions and 145 deletions.
4 changes: 4 additions & 0 deletions modules/context/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ type APIForbiddenError struct {
// swagger:response notFound
type APINotFound struct{}

//APIRedirect is a redirect response
// swagger:response redirect
type APIRedirect struct{}

// Error responses error message to client with given message.
// If status is 500, also it prints error to log.
func (ctx *APIContext) Error(status int, title string, obj interface{}) {
Expand Down
Loading

0 comments on commit fd8e8a4

Please sign in to comment.