Lunny Xiao
daab245167
Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert (#8892)
* Move code.gitea.io/gitea/routers/api/v1/convert to code.gitea.io/gitea/modules/convert
* fix fmt
4年前
Tamal Saha
171b359877
Use gitea forked macaron (#7933)
Signed-off-by: Tamal Saha <tamal@appscode.com>
4年前
renothing
cbf231a675
fix wrong email when use gitea as OAuth2 provider (#7640)
when you use gitea as OAuth2 provider, the /api/v1/user should return
user primary email as identifier, which is unique in OAuth2 clients.
this patch use convert.ToUser replace all u.APIFormat in api requests,
return primary email when caller is yourself or admin.
4年前
Lunny Xiao
34eee25bd4
Move sdk structs to modules/structs (#6905)
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
5年前
John Olheiser
cac9e6e760
Updates to API 404 responses (#6077)
5年前
Lunny Xiao
eabbddcd98
Restrict permission check on repositories and fix some problems (#5314)
* fix units permission problems
* fix some bugs and merge LoadUnits to repoAssignment
* refactor permission struct and add some copyright heads
* remove unused codes
* fix routes units check
* improve permission check
* add unit tests for permission
* fix typo
* fix tests
* fix some routes
* fix api permission check
* improve permission check
* fix some permission check
* fix tests
* fix tests
* improve some permission check
* fix some permission check
* refactor AccessLevel
* fix bug
* fix tests
* fix tests
* fix tests
* fix AccessLevel
* rename CanAccess
* fix tests
* fix comment
* fix bug
* add missing unit for test repos
* fix bug
* rename some functions
* fix routes check
5年前
Lanre Adelowo
59b10e66f7
An inactive user shouldn't be able to be added as a collaborator (#4535)
* an inactive user shouldn't be able to be a collaborator
* use translated error message
* add active user check when adding a new collaborator via the api
* fix translation text
* added collaborator test
* improvee testcases
5年前
Bo-Yi Wu
1c5cbc390b
refactor: import order. (#3736)
6年前
Ethan Koenig
f26f4a7e01
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
6年前
Ethan Koenig
9fae9f0dc2
Remove redundant query in collaborator API (#516)
7年前
Ethan Koenig
2342df183b
API Endpoints for collaborators (#375)
7年前
Lunny Xiao
3917ed45de
golint fixed for routers (#208)
7年前
Sandro Santilli
a1c5f02444
Fix import path of go-sdk (#141)
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
7年前
Sandro Santilli
4247304f5a
Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
7年前
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
7年前
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
7年前
Unknwon
7e9b42c87d
#2780 code clean up
7年前
Robin Lambertz
b6c14f8b21
Add AddCollaborator API Endpoint (#2780)
* Add AddCollaborator API Endpoint
* Add optional Permission to AddCollaborator endpoint
* Use APIContext
7年前