summaryrefslogtreecommitdiffstats
path: root/vendor/code.gitea.io/sdk/gitea/org.go
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2017-08-21 13:13:47 +0200
committerLauris BH <lauris@nix.lv>2017-08-21 14:13:47 +0300
commitfd8e8a421ae21f8c68eaad195bdd4881e1d34b21 (patch)
tree2c651e0f39a0360496d1fbbd1f4d0fd03ec9a95f /vendor/code.gitea.io/sdk/gitea/org.go
parent951c909a67bb6f1f8577fb1e61f22dca2bc3c07f (diff)
downloadgitea-fd8e8a421ae21f8c68eaad195bdd4881e1d34b21.tar.gz
gitea-fd8e8a421ae21f8c68eaad195bdd4881e1d34b21.zip
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
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/org.go')
-rw-r--r--vendor/code.gitea.io/sdk/gitea/org.go15
1 files changed, 11 insertions, 4 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/org.go b/vendor/code.gitea.io/sdk/gitea/org.go
index 103674a701..ffdc2ffbea 100644
--- a/vendor/code.gitea.io/sdk/gitea/org.go
+++ b/vendor/code.gitea.io/sdk/gitea/org.go
@@ -11,6 +11,7 @@ import (
)
// Organization a group of some repositories, users and teams
+// swagger:response Organization
type Organization struct {
ID int64 `json:"id"`
UserName string `json:"username"`
@@ -40,12 +41,18 @@ func (c *Client) GetOrg(orgname string) (*Organization, error) {
}
// CreateOrgOption create one organization options
+// swagger:parameters adminCreateOrg
type CreateOrgOption struct {
- UserName string `json:"username" binding:"Required"`
- FullName string `json:"full_name"`
+ // in: body
+ UserName string `json:"username" binding:"Required"`
+ // in: body
+ FullName string `json:"full_name"`
+ // in: body
Description string `json:"description"`
- Website string `json:"website"`
- Location string `json:"location"`
+ // in: body
+ Website string `json:"website"`
+ // in: body
+ Location string `json:"location"`
}
// EditOrgOption edit one organization options