diff options
author | 6543 <6543@obermui.de> | 2021-06-23 21:58:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 15:58:44 -0400 |
commit | 58501a26821160c3258c1ad3501f4c1d8db0a597 (patch) | |
tree | d8a75bc1e8145e83b02c220006b9bc24d8ba2f9b /routers/api/v1/swagger | |
parent | 8640717f5fb045ee88eda14c7dbe3731b8c068b2 (diff) | |
download | gitea-58501a26821160c3258c1ad3501f4c1d8db0a597.tar.gz gitea-58501a26821160c3258c1ad3501f4c1d8db0a597.zip |
[API] GET / SET User Settings (#16169)
* API: GET/SET User Settings
* linter
* Apply suggestions from code review
* Update modules/structs/user.go
* lint
* fix swagger
* move User2UserSettings to convert
* as per @zeripath "preferences" -> "settings"
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/api/v1/swagger')
-rw-r--r-- | routers/api/v1/swagger/options.go | 3 | ||||
-rw-r--r-- | routers/api/v1/swagger/user.go | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/routers/api/v1/swagger/options.go b/routers/api/v1/swagger/options.go index 11158fb86d..b5f34e86a3 100644 --- a/routers/api/v1/swagger/options.go +++ b/routers/api/v1/swagger/options.go @@ -161,4 +161,7 @@ type swaggerParameterBodies struct { // in:body CreateTagOption api.CreateTagOption + + // in:body + UserSettingsOptions api.UserSettingsOptions } diff --git a/routers/api/v1/swagger/user.go b/routers/api/v1/swagger/user.go index a2df40e4cf..a4d5201236 100644 --- a/routers/api/v1/swagger/user.go +++ b/routers/api/v1/swagger/user.go @@ -42,3 +42,10 @@ type swaggerResponseUserHeatmapData struct { // in:body Body []models.UserHeatmapData `json:"body"` } + +// UserSettings +// swagger:response UserSettings +type swaggerResponseUserSettings struct { + // in:body + Body []api.UserSettings `json:"body"` +} |