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 vuotta sitten
Tamal Saha
171b359877
Use gitea forked macaron (#7933)
Signed-off-by: Tamal Saha <tamal@appscode.com>
4 vuotta sitten
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 vuotta sitten
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 vuotta sitten
John Olheiser
cac9e6e760
Updates to API 404 responses (#6077)
5 vuotta sitten
Antoine GIRARD
908e8942cc
Fix swagger errors (#4220)
Fix all the resting errors to have a valid swagger file.
They are still some warnings but nothing blocking.
Doing so I found that some request still misses son parameters for some POST/PUT/PATCH request. This means the a client generated from the swagger file will not work completely.
Fix #4088 by activating validation in drone
Should fix #4010 .
6 vuotta sitten
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 vuotta sitten
Antoine GIRARD
fd8e8a421a
Improve swagger doc (#2274)
* Add swagger comment for adminCreateOrg
* Add swagger comment for admin route
* add hook swagger doc
* Add tags
* Add auth
* Fix name of responses
* Edit name method
* Update vendor
* make generate-swagger
6 vuotta sitten
Antoine GIRARD
3edb0c5894
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
7 vuotta sitten
Lunny Xiao
3917ed45de
golint fixed for routers (#208)
7 vuotta sitten
Sandro Santilli
a1c5f02444
Fix import path of go-sdk (#141)
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
7 vuotta sitten
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 vuotta sitten
Thomas Boerger
4c6c16f358
Replaced go-gogs-client with go-sdk imports
7 vuotta sitten
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs (#37)
7 vuotta sitten
Unknwon
dccb0c15b9
Replace convert.To with APIFormat calls
7 vuotta sitten
Unknwon
1f2e173a74
Refactor User.Id to User.ID
7 vuotta sitten
Unknwon
e6f927f61a
#1692 api: admin list and create team under organization
8 vuotta sitten
Unknwon
9bd9ad4205
#1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
8 vuotta sitten
Unknwon
dd6faf7f9b
Convert all API handers to use *context.APIContext
8 vuotta sitten
Unknwon
514382e2eb
Rename module: middleware -> context
8 vuotta sitten
Unknwon
a49af93faf
#1692 APIs: Users Followers
- User profile un/follow
- List user's followers/following
8 vuotta sitten