6543
58501a2682
[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>
4 years ago
6543
b3fbd37e99
[API] expose repo.GetReviewers() & repo.GetAssignees() ( #16168 )
...
* API: expose repo.GetReviewers() & repo.GetAssignees()
* Add tests
* fix unrelated swagger query type
4 years ago
6543
c9d053f0ca
[API] User expose counters ( #16167 )
4 years ago
KN4CK3R
f8335444de
Add Active and ProhibitLogin to API ( #15689 )
...
* Added active and prohibit_login.
* Do not omit fields for normal users.
4 years ago
KN4CK3R
67e10397af
Add Location, Website and Biography to API ( #15675 )
4 years ago
6543
290cf75f93
[refactor] Unify the export of user data via API ( #15144 )
...
* [refactor] unify how user data is exported via API
* test time via unix timestamp
4 years ago
6543
8d5c795cc4
[API] Add Restricted Field to User ( #14630 )
...
* Expose Restricted field for User
* Add Option to Change Restricted on User via adminEditUser API
* Add test who change restricted & test if it changed it ...
* make generate-swagger
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
4 years ago
6543
d453533beb
[Refactor] Move APIFormat functions into convert package ( #12856 )
...
* USER APIFormat -> ToUser
* Migrate more and mark APIFormat deprecated
* models.Comment APIFormat() -> convert.ToComment
* models.Release APIFormat() -> convert.ToRelease
* models.Attachments APIFormat() -> convert.ToReleaseAttachments
* models.CommitStatus APIFormat() -> convert.ToCommitStatus
* finish migration to convert.ToUser
* Move Test
* Imprufe Test
* fix test
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
4 years ago
6543
06480af472
Convert User expose ID each time ( #12855 )
...
* git blame tells me a lot of gitea things happen here around 2018, add header
* move user code int its own file
* expose user id
* adopt things from APIFormat
* fix test
* CI.restart()
4 years ago