diff options
author | Antoine GIRARD <sapk@users.noreply.github.com> | 2017-05-02 15:35:59 +0200 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2017-05-02 15:35:59 +0200 |
commit | 3edb0c58943c003ed3f209b2197d1f43484a3432 (patch) | |
tree | e5849cead5053ab505a2c5dc1342111c6bcf0816 /vendor/code.gitea.io/sdk/gitea/repo_key.go | |
parent | bb5f694fc57c3ade9c13e841b9a237f4e192da22 (diff) | |
download | gitea-3edb0c58943c003ed3f209b2197d1f43484a3432.tar.gz gitea-3edb0c58943c003ed3f209b2197d1f43484a3432.zip |
Generate swagger json (#1402)
- Generate swagger.json into public/
- Add swagger-ui auto-installation
- Add footer link to local swagger-ui
- Add /swagger url for using app url.
- Fix Swagger-UI version via git tag
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/repo_key.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/repo_key.go | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/repo_key.go b/vendor/code.gitea.io/sdk/gitea/repo_key.go index a0dbf0a58a..24d29a2095 100644 --- a/vendor/code.gitea.io/sdk/gitea/repo_key.go +++ b/vendor/code.gitea.io/sdk/gitea/repo_key.go @@ -34,9 +34,20 @@ func (c *Client) GetDeployKey(user, repo string, keyID int64) (*DeployKey, error } // CreateKeyOption options when create deploy key +// swagger:parameters userCurrentPostKey type CreateKeyOption struct { + // Title of the key to add + // + // in: body + // required: true + // unique: true Title string `json:"title" binding:"Required"` - Key string `json:"key" binding:"Required"` + // An armored SSH key to add + // + // in: body + // required: true + // unique: true + Key string `json:"key" binding:"Required"` } // CreateDeployKey options when create one deploy key |