diff options
author | Ethan Koenig <ethantkoenig@gmail.com> | 2017-11-12 23:02:25 -0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2017-11-13 09:02:25 +0200 |
commit | f26f4a7e01f9c380c261fa5bc21bd7e48f2f2f9f (patch) | |
tree | 39c2fc0abc5a10f80f8fa31b3bd57ec3604bf7fd /vendor/code.gitea.io/sdk/gitea/user_gpgkey.go | |
parent | 4287d100b39ff89e297ba8945e54fb5911226974 (diff) | |
download | gitea-f26f4a7e01f9c380c261fa5bc21bd7e48f2f2f9f.tar.gz gitea-f26f4a7e01f9c380c261fa5bc21bd7e48f2f2f9f.zip |
Update swagger documentation (#2899)
* Update swagger documentation
Add docs for missing endpoints
Add documentation for request parameters
Make parameter naming consistent
Fix response documentation
* Restore delete comments
Diffstat (limited to 'vendor/code.gitea.io/sdk/gitea/user_gpgkey.go')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/user_gpgkey.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go b/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go index 87dd749e6c..ae5dcdcb10 100644 --- a/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go +++ b/vendor/code.gitea.io/sdk/gitea/user_gpgkey.go @@ -11,12 +11,7 @@ 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,7 +23,9 @@ type GPGKey struct { CanEncryptComms bool `json:"can_encrypt_comms"` CanEncryptStorage bool `json:"can_encrypt_storage"` CanCertify bool `json:"can_certify"` + // swagger:strfmt date-time Created time.Time `json:"created_at,omitempty"` + // swagger:strfmt date-time Expires time.Time `json:"expires_at,omitempty"` } @@ -40,11 +37,9 @@ type GPGKeyEmail struct { } // 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"` |