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/user_gpgkey.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/user_gpgkey.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/user_gpgkey.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go b/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go index c8afe92c92..942478b9f1 100644 --- a/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go +++ b/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go @@ -11,7 +11,12 @@ import ( "time" ) +// GPGKeyList represents a list of GPGKey +// swagger:response GPGKeyList +type GPGKeyList []*GPGKey + // GPGKey a user GPG key to sign commit and tag in repository +// swagger:response GPGKey type GPGKey struct { ID int64 `json:"id"` PrimaryKeyID string `json:"primary_key_id"` @@ -28,13 +33,20 @@ type GPGKey struct { } // GPGKeyEmail a email attache to a GPGKey +// swagger:model GPGKeyEmail type GPGKeyEmail struct { Email string `json:"email"` Verified bool `json:"verified"` } // CreateGPGKeyOption options create user GPG key +// swagger:parameters userCurrentPostGPGKey type CreateGPGKeyOption struct { + // An armored GPG key to add + // + // in: body + // required: true + // unique: true ArmoredKey string `json:"armored_public_key" binding:"Required"` } |