summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo
diff options
context:
space:
mode:
authorCirno the Strongest <1447794+CirnoT@users.noreply.github.com>2020-06-09 06:57:38 +0200
committerGitHub <noreply@github.com>2020-06-09 00:57:38 -0400
commit27a6e039063c394a1bddeb8897dec2e3742dd13e (patch)
tree2f43edfc885f5504419d1b599ea42eb021e1ba99 /routers/api/v1/repo
parentcefbf73aea912c510a8dd194532233076b822d37 (diff)
downloadgitea-27a6e039063c394a1bddeb8897dec2e3742dd13e.tar.gz
gitea-27a6e039063c394a1bddeb8897dec2e3742dd13e.zip
Remove page size limit comment from swagger (#11806)
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/api/v1/repo')
-rw-r--r--routers/api/v1/repo/collaborators.go2
-rw-r--r--routers/api/v1/repo/commits.go2
-rw-r--r--routers/api/v1/repo/fork.go2
-rw-r--r--routers/api/v1/repo/hook.go2
-rw-r--r--routers/api/v1/repo/issue.go2
-rw-r--r--routers/api/v1/repo/issue_comment.go2
-rw-r--r--routers/api/v1/repo/issue_reaction.go2
-rw-r--r--routers/api/v1/repo/issue_stopwatch.go2
-rw-r--r--routers/api/v1/repo/issue_subscription.go2
-rw-r--r--routers/api/v1/repo/issue_tracked_time.go6
-rw-r--r--routers/api/v1/repo/key.go2
-rw-r--r--routers/api/v1/repo/label.go2
-rw-r--r--routers/api/v1/repo/milestone.go2
-rw-r--r--routers/api/v1/repo/pull.go2
-rw-r--r--routers/api/v1/repo/pull_review.go2
-rw-r--r--routers/api/v1/repo/release.go4
-rw-r--r--routers/api/v1/repo/repo.go2
-rw-r--r--routers/api/v1/repo/star.go2
-rw-r--r--routers/api/v1/repo/status.go4
-rw-r--r--routers/api/v1/repo/subscriber.go2
-rw-r--r--routers/api/v1/repo/topic.go4
-rw-r--r--routers/api/v1/repo/tree.go2
22 files changed, 27 insertions, 27 deletions
diff --git a/routers/api/v1/repo/collaborators.go b/routers/api/v1/repo/collaborators.go
index e99bc7b621..497255a474 100644
--- a/routers/api/v1/repo/collaborators.go
+++ b/routers/api/v1/repo/collaborators.go
@@ -40,7 +40,7 @@ func ListCollaborators(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index f9bc2efa9a..faae214a4b 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -109,7 +109,7 @@ func GetAllCommits(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/fork.go b/routers/api/v1/repo/fork.go
index 3536b7f43a..0dd961d7f0 100644
--- a/routers/api/v1/repo/fork.go
+++ b/routers/api/v1/repo/fork.go
@@ -40,7 +40,7 @@ func ListForks(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/hook.go b/routers/api/v1/repo/hook.go
index 7fc5680c4f..3758493344 100644
--- a/routers/api/v1/repo/hook.go
+++ b/routers/api/v1/repo/hook.go
@@ -41,7 +41,7 @@ func ListHooks(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/issue.go b/routers/api/v1/repo/issue.go
index 062ecc74d0..51f6efe8ab 100644
--- a/routers/api/v1/repo/issue.go
+++ b/routers/api/v1/repo/issue.go
@@ -220,7 +220,7 @@ func ListIssues(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go
index 6b7c2beac4..bf86b42402 100644
--- a/routers/api/v1/repo/issue_comment.go
+++ b/routers/api/v1/repo/issue_comment.go
@@ -124,7 +124,7 @@ func ListRepoIssueComments(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/issue_reaction.go b/routers/api/v1/repo/issue_reaction.go
index 5e49ea4aae..564f67e493 100644
--- a/routers/api/v1/repo/issue_reaction.go
+++ b/routers/api/v1/repo/issue_reaction.go
@@ -252,7 +252,7 @@ func GetIssueReactions(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/issue_stopwatch.go b/routers/api/v1/repo/issue_stopwatch.go
index c8525e502c..ca1593619e 100644
--- a/routers/api/v1/repo/issue_stopwatch.go
+++ b/routers/api/v1/repo/issue_stopwatch.go
@@ -208,7 +208,7 @@ func GetStopwatches(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// consumes:
// - application/json
diff --git a/routers/api/v1/repo/issue_subscription.go b/routers/api/v1/repo/issue_subscription.go
index dfccbde64e..f0df0976fb 100644
--- a/routers/api/v1/repo/issue_subscription.go
+++ b/routers/api/v1/repo/issue_subscription.go
@@ -241,7 +241,7 @@ func GetIssueSubscribers(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/issue_tracked_time.go b/routers/api/v1/repo/issue_tracked_time.go
index 19242d1fae..fd437753ab 100644
--- a/routers/api/v1/repo/issue_tracked_time.go
+++ b/routers/api/v1/repo/issue_tracked_time.go
@@ -57,7 +57,7 @@ func ListTrackedTimes(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
@@ -458,7 +458,7 @@ func ListTrackedTimesByRepository(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
@@ -528,7 +528,7 @@ func ListMyTrackedTimes(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// produces:
// - application/json
diff --git a/routers/api/v1/repo/key.go b/routers/api/v1/repo/key.go
index 4039100e1f..5d63a25d64 100644
--- a/routers/api/v1/repo/key.go
+++ b/routers/api/v1/repo/key.go
@@ -68,7 +68,7 @@ func ListDeployKeys(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/label.go b/routers/api/v1/repo/label.go
index 5f70e74407..a293801c4f 100644
--- a/routers/api/v1/repo/label.go
+++ b/routers/api/v1/repo/label.go
@@ -42,7 +42,7 @@ func ListLabels(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/milestone.go b/routers/api/v1/repo/milestone.go
index 1bfd54df88..ee8393aecc 100644
--- a/routers/api/v1/repo/milestone.go
+++ b/routers/api/v1/repo/milestone.go
@@ -45,7 +45,7 @@ func ListMilestones(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/pull.go b/routers/api/v1/repo/pull.go
index 921f61a612..5acbb9e297 100644
--- a/routers/api/v1/repo/pull.go
+++ b/routers/api/v1/repo/pull.go
@@ -71,7 +71,7 @@ func ListPullRequests(ctx *context.APIContext, form api.ListPullRequestsOptions)
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/pull_review.go b/routers/api/v1/repo/pull_review.go
index 44559d70ed..3f2cb011d8 100644
--- a/routers/api/v1/repo/pull_review.go
+++ b/routers/api/v1/repo/pull_review.go
@@ -48,7 +48,7 @@ func ListPullReviews(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/release.go b/routers/api/v1/repo/release.go
index 5a04fbeec2..ade82f24cb 100644
--- a/routers/api/v1/repo/release.go
+++ b/routers/api/v1/repo/release.go
@@ -79,7 +79,7 @@ func ListReleases(ctx *context.APIContext) {
// required: true
// - name: per_page
// in: query
- // description: items count every page wants to load
+ // description: page size of results, deprecated - use limit
// type: integer
// deprecated: true
// - name: page
@@ -88,7 +88,7 @@ func ListReleases(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go
index e5055daa2b..f812ac6788 100644
--- a/routers/api/v1/repo/repo.go
+++ b/routers/api/v1/repo/repo.go
@@ -116,7 +116,7 @@ func Search(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go
index c68f8f2744..774b326472 100644
--- a/routers/api/v1/repo/star.go
+++ b/routers/api/v1/repo/star.go
@@ -37,7 +37,7 @@ func ListStargazers(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/status.go b/routers/api/v1/repo/status.go
index 6ce71cc911..e4eeecf372 100644
--- a/routers/api/v1/repo/status.go
+++ b/routers/api/v1/repo/status.go
@@ -108,7 +108,7 @@ func GetCommitStatuses(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
@@ -160,7 +160,7 @@ func GetCommitStatusesByRef(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/subscriber.go b/routers/api/v1/repo/subscriber.go
index d3cd8ccc3b..ac61710bd2 100644
--- a/routers/api/v1/repo/subscriber.go
+++ b/routers/api/v1/repo/subscriber.go
@@ -37,7 +37,7 @@ func ListSubscribers(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/topic.go b/routers/api/v1/repo/topic.go
index f256ab9422..41fa37a2c1 100644
--- a/routers/api/v1/repo/topic.go
+++ b/routers/api/v1/repo/topic.go
@@ -40,7 +40,7 @@ func ListTopics(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
@@ -259,7 +259,7 @@ func TopicSearch(ctx *context.APIContext) {
// type: integer
// - name: limit
// in: query
- // description: page size of results, maximum page size is 50
+ // description: page size of results
// type: integer
// responses:
// "200":
diff --git a/routers/api/v1/repo/tree.go b/routers/api/v1/repo/tree.go
index 987f2fb808..e6c57af3e2 100644
--- a/routers/api/v1/repo/tree.go
+++ b/routers/api/v1/repo/tree.go
@@ -46,7 +46,7 @@ func GetTree(ctx *context.APIContext) {
// type: integer
// - name: per_page
// in: query
- // description: number of items per page; default is 1000 or what is set in app.ini as DEFAULT_GIT_TREES_PER_PAGE
+ // description: number of items per page
// required: false
// type: integer
// responses: