You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add info about list endpoints to CONTRIBUTING.md
* Let all list endpoints return X-Total-Count header
* Add TODOs for GetCombinedCommitStatusByRef
* Fix models/issue_stopwatch.go
* Rrefactor models.ListDeployKeys
* Introduce helper func and use them for SetLinkHeader related func
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+6-2
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,10 @@ In general, HTTP methods are chosen as follows:
207
207
208
208
An endpoint which changes/edits an object expects all fields to be optional (except ones to identify the object, which are required).
209
209
210
+
### Endpoints returning lists should
211
+
* support pagination (`page` & `limit` options in query)
212
+
* set `X-Total-Count` header via **SetTotalCountHeader** ([example](https://github.com/go-gitea/gitea/blob/7aae98cc5d4113f1e9918b7ee7dd09f67c189e3e/routers/api/v1/repo/issue.go#L444))
213
+
210
214
211
215
## Developer Certificate of Origin (DCO)
212
216
@@ -231,8 +235,8 @@ on, finishing, and issuing releases. The overall goal is to make a
231
235
minor release every three or four months, which breaks down into two or three months of
232
236
general development followed by one month of testing and polishing
233
237
known as the release freeze. All the feature pull requests should be
234
-
merged before feature freeze. And, during the frozen period, a corresponding
235
-
release branch is open for fixes backported from main branch. Release candidates
238
+
merged before feature freeze. And, during the frozen period, a corresponding
239
+
release branch is open for fixes backported from main branch. Release candidates
236
240
are made during this period for user testing to
237
241
obtain a final version that is maintained in this branch. A release is
238
242
maintained by issuing patch releases to only correct critical problems
0 commit comments