SpaWn2KiLl
539bd27f9f
API add/generalize pagination ( #9452 )
* paginate results
* fixed deadlock
* prevented breaking change
* updated swagger
* go fmt
* fixed find topic
* go mod tidy
* go mod vendor with go1.13.5
* fixed repo find topics
* fixed unit test
* added Limit method to Engine struct; use engine variable when provided; fixed gitignore
* use ItemsPerPage for default pagesize; fix GetWatchers, getOrgUsersByOrgID and GetStargazers; fix GetAllCommits headers; reverted some changed behaviors
* set Page value on Home route
* improved memory allocations
* fixed response headers
* removed logfiles
* fixed import order
* import order
* improved swagger
* added function to get models.ListOptions from context
* removed pagesize diff on unit test
* fixed imports
* removed unnecessary struct field
* fixed go fmt
* scoped PR
* code improvements
* code improvements
* go mod tidy
* fixed import order
* fixed commit statuses session
* fixed files headers
* fixed headers; added pagination for notifications
* go mod tidy
* go fmt
* removed Private from user search options; added setting.UI.IssuePagingNum as default valeu on repo's issues list
* Apply suggestions from code review
Co-Authored-By: 6543 <6543@obermui.de>
Co-Authored-By: zeripath <art27@cantab.net>
* fixed build error
* CI.restart()
* fixed merge conflicts resolve
* fixed conflicts resolve
* improved FindTrackedTimesOptions.ToOptions() method
* added backwards compatibility on ListReleases request; fixed issue tracked time ToSession
* fixed build error; fixed swagger template
* fixed swagger template
* fixed ListReleases backwards compatibility
* added page to user search route
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
5 years ago
6543
b1e5b275a0
times Add filters ( #9373 )
(extend #9200 )
* add query param for GET functions (created Bevore & after)
* add test
* generalize func GetQueryBeforeSince
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
5 years ago
6543
0fe99507c3
Swagger info corrections ( #9441 )
* use numbers and not http.Status___ enum
* fix test
* add many missing swagger responses
* code format
* Deletion Sould return 204 ...
* error handling improvements
* if special error type ... then add it to swagger too
* one smal nit
* invalidTopicsError is []string
* valid swagger specification 2.0
- if you add responses swagger can tell you if you do it right 👍
* use ctx.InternalServerError
* Revert "use numbers and not http.Status___ enum"
This reverts commit b1ff386e24
.
* use http.Status* enum everywhere
5 years ago
Lunny Xiao
ed968cb57c
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
5 years ago
Lunny Xiao
ccfd918a9a
Move more webhook codes from models to webhook module ( #8802 )
* Move more webhook codes from models to webhook module
5 years ago
WGH
016de7972b
Implement webhook branch filter ( #7791 )
* Fix validate() function to handle errors in embedded anon structs
* Implement webhook branch filter
See #2025 , #3998 .
6 years ago
Tamal Saha
033fe113c1
Use gitea forked macaron ( #7933 )
Signed-off-by: Tamal Saha <tamal@appscode.com>
6 years ago
techknowlogick
4a8443d3d2
Webhook Logs show proper HTTP Method, and allow change HTTP method in form ( #6953 )
* Fix #6951 - logs show proper HTTP Method, and allow change HTTP method
in form
* enforce POST method for webhook
* set default if method is empty
6 years ago
Lunny Xiao
45d0e05e14
Move sdk structs to modules/structs ( #6905 )
* move sdk structs to moduels/structs
* fix tests
* fix fmt
* fix swagger
* fix vendor
6 years ago
John Olheiser
355c701c7f
Updates to API 404 responses ( #6077 )
6 years ago
Lanre Adelowo
ac3d4c717b
Slack webhook channel name cannot be empty or just contain an hashtag ( #4786 )
7 years ago
Lunny Xiao
a619bd08b0
Add more webhooks support and refactor webhook templates directory ( #3929 )
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* load attributes when created release
* update comparsion doc
7 years ago
Ethan Koenig
e5de4bdfbb
Fix API status code for hook creation ( #2814 )
* Fix API status code for hook creation
* Named constants for response statuses
7 years ago
Ethan Koenig
a15346a9bd
Fix repo API bug ( #2133 )
Don't require token when not necessary
8 years ago
Ethan Koenig
13c5f83c24
Organization webhook API endpoints
8 years ago
Unknwon
ae4bcfa2e0
#1692 add organization APIs
9 years ago
Unknwon
6dee7a47f0
#1692 add user email APIs
9 years ago
Unknwon
c6f6031bd5
refactor API routes and some work for #976
9 years ago