From 27a6e039063c394a1bddeb8897dec2e3742dd13e Mon Sep 17 00:00:00 2001 From: Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> Date: Tue, 9 Jun 2020 06:57:38 +0200 Subject: [PATCH] Remove page size limit comment from swagger (#11806) Co-authored-by: techknowlogick --- routers/api/v1/admin/org.go | 2 +- routers/api/v1/admin/user.go | 2 +- routers/api/v1/notify/repo.go | 2 +- routers/api/v1/notify/user.go | 2 +- routers/api/v1/org/hook.go | 2 +- routers/api/v1/org/label.go | 2 +- routers/api/v1/org/member.go | 4 +- routers/api/v1/org/org.go | 6 +- routers/api/v1/org/team.go | 10 +- routers/api/v1/repo/collaborators.go | 2 +- routers/api/v1/repo/commits.go | 2 +- routers/api/v1/repo/fork.go | 2 +- routers/api/v1/repo/hook.go | 2 +- routers/api/v1/repo/issue.go | 2 +- routers/api/v1/repo/issue_comment.go | 2 +- routers/api/v1/repo/issue_reaction.go | 2 +- routers/api/v1/repo/issue_stopwatch.go | 2 +- routers/api/v1/repo/issue_subscription.go | 2 +- routers/api/v1/repo/issue_tracked_time.go | 6 +- routers/api/v1/repo/key.go | 2 +- routers/api/v1/repo/label.go | 2 +- routers/api/v1/repo/milestone.go | 2 +- routers/api/v1/repo/pull.go | 2 +- routers/api/v1/repo/pull_review.go | 2 +- routers/api/v1/repo/release.go | 4 +- routers/api/v1/repo/repo.go | 2 +- routers/api/v1/repo/star.go | 2 +- routers/api/v1/repo/status.go | 4 +- routers/api/v1/repo/subscriber.go | 2 +- routers/api/v1/repo/topic.go | 4 +- routers/api/v1/repo/tree.go | 2 +- routers/api/v1/user/app.go | 4 +- routers/api/v1/user/follower.go | 8 +- routers/api/v1/user/gpg_key.go | 4 +- routers/api/v1/user/key.go | 4 +- routers/api/v1/user/repo.go | 6 +- routers/api/v1/user/star.go | 4 +- routers/api/v1/user/user.go | 2 +- routers/api/v1/user/watch.go | 4 +- templates/swagger/v1_json.tmpl | 118 +++++++++++----------- 40 files changed, 120 insertions(+), 120 deletions(-) diff --git a/routers/api/v1/admin/org.go b/routers/api/v1/admin/org.go index 11c2f1dc49..fc2f81eb67 100644 --- a/routers/api/v1/admin/org.go +++ b/routers/api/v1/admin/org.go @@ -93,7 +93,7 @@ func GetAllOrgs(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/admin/user.go b/routers/api/v1/admin/user.go index 38237d6744..f416ea9567 100644 --- a/routers/api/v1/admin/user.go +++ b/routers/api/v1/admin/user.go @@ -343,7 +343,7 @@ func GetAllUsers(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/notify/repo.go b/routers/api/v1/notify/repo.go index 10c00c5467..3050cca1e5 100644 --- a/routers/api/v1/notify/repo.go +++ b/routers/api/v1/notify/repo.go @@ -57,7 +57,7 @@ func ListRepoNotifications(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/notify/user.go b/routers/api/v1/notify/user.go index 7f731e25d4..649eaa8a37 100644 --- a/routers/api/v1/notify/user.go +++ b/routers/api/v1/notify/user.go @@ -47,7 +47,7 @@ func ListNotifications(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/org/hook.go b/routers/api/v1/org/hook.go index 2fd084a13a..cce959bb49 100644 --- a/routers/api/v1/org/hook.go +++ b/routers/api/v1/org/hook.go @@ -33,7 +33,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/org/label.go b/routers/api/v1/org/label.go index c5fb262a30..b4a8a5ac33 100644 --- a/routers/api/v1/org/label.go +++ b/routers/api/v1/org/label.go @@ -36,7 +36,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/org/member.go b/routers/api/v1/org/member.go index e452683da1..285a401d2d 100644 --- a/routers/api/v1/org/member.go +++ b/routers/api/v1/org/member.go @@ -56,7 +56,7 @@ func ListMembers(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": @@ -91,7 +91,7 @@ func ListPublicMembers(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/org/org.go b/routers/api/v1/org/org.go index b79761c875..220a7dc265 100644 --- a/routers/api/v1/org/org.go +++ b/routers/api/v1/org/org.go @@ -46,7 +46,7 @@ func ListMyOrgs(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": @@ -74,7 +74,7 @@ func ListUserOrgs(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": @@ -101,7 +101,7 @@ func GetAll(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/org/team.go b/routers/api/v1/org/team.go index 7b44a47870..9ca40a7796 100644 --- a/routers/api/v1/org/team.go +++ b/routers/api/v1/org/team.go @@ -37,7 +37,7 @@ func ListTeams(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": @@ -77,7 +77,7 @@ func ListUserTeams(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": @@ -310,7 +310,7 @@ func GetTeamMembers(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": @@ -472,7 +472,7 @@ func GetTeamRepos(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": @@ -635,7 +635,7 @@ func SearchTeam(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/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: diff --git a/routers/api/v1/user/app.go b/routers/api/v1/user/app.go index f426721c82..624beff5bb 100644 --- a/routers/api/v1/user/app.go +++ b/routers/api/v1/user/app.go @@ -35,7 +35,7 @@ func ListAccessTokens(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": @@ -198,7 +198,7 @@ func ListOauth2Applications(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/user/follower.go b/routers/api/v1/user/follower.go index 6e180b37f1..39f3c20927 100644 --- a/routers/api/v1/user/follower.go +++ b/routers/api/v1/user/follower.go @@ -44,7 +44,7 @@ func ListMyFollowers(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 @@ -74,7 +74,7 @@ func ListFollowers(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": @@ -108,7 +108,7 @@ func ListMyFollowing(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 @@ -138,7 +138,7 @@ func ListFollowing(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/user/gpg_key.go b/routers/api/v1/user/gpg_key.go index d5fed96df1..9fbe351c27 100644 --- a/routers/api/v1/user/gpg_key.go +++ b/routers/api/v1/user/gpg_key.go @@ -48,7 +48,7 @@ func ListGPGKeys(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": @@ -73,7 +73,7 @@ func ListMyGPGKeys(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/user/key.go b/routers/api/v1/user/key.go index 58705dd2f1..033b29f420 100644 --- a/routers/api/v1/user/key.go +++ b/routers/api/v1/user/key.go @@ -116,7 +116,7 @@ func ListMyPublicKeys(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 @@ -150,7 +150,7 @@ func ListPublicKeys(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/user/repo.go b/routers/api/v1/user/repo.go index 4024bf96cf..887d606998 100644 --- a/routers/api/v1/user/repo.go +++ b/routers/api/v1/user/repo.go @@ -58,7 +58,7 @@ func ListUserRepos(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": @@ -86,7 +86,7 @@ func ListMyRepos(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": @@ -138,7 +138,7 @@ func ListOrgRepos(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/user/star.go b/routers/api/v1/user/star.go index 0e0875f04e..1fc1005810 100644 --- a/routers/api/v1/user/star.go +++ b/routers/api/v1/user/star.go @@ -52,7 +52,7 @@ func GetStarredRepos(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": @@ -79,7 +79,7 @@ func GetMyStarredRepos(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/user/user.go b/routers/api/v1/user/user.go index c0b0f1170c..aaca53093e 100644 --- a/routers/api/v1/user/user.go +++ b/routers/api/v1/user/user.go @@ -41,7 +41,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/user/watch.go b/routers/api/v1/user/watch.go index 1b55863034..9ad8682f5f 100644 --- a/routers/api/v1/user/watch.go +++ b/routers/api/v1/user/watch.go @@ -51,7 +51,7 @@ func GetWatchedRepos(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": @@ -80,7 +80,7 @@ func GetMyWatchedRepos(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/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index cc802efc95..3c6186a938 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -42,7 +42,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -76,7 +76,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -481,7 +481,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -664,7 +664,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -821,7 +821,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1004,7 +1004,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1187,7 +1187,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1292,7 +1292,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1431,7 +1431,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1509,7 +1509,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1596,7 +1596,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -1819,7 +1819,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -2404,7 +2404,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -2590,7 +2590,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -2998,7 +2998,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -3311,7 +3311,7 @@ }, { "type": "integer", - "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", "name": "per_page", "in": "query" } @@ -3359,7 +3359,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -3813,7 +3813,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -3922,7 +3922,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -4914,7 +4914,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -5239,7 +5239,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -5474,7 +5474,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -5695,7 +5695,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -5864,7 +5864,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -6124,7 +6124,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -6395,7 +6395,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -6524,7 +6524,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -6913,7 +6913,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -7269,7 +7269,7 @@ }, { "type": "integer", - "description": "items count every page wants to load", + "description": "page size of results, deprecated - use limit", "name": "per_page", "in": "query" }, @@ -7281,7 +7281,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -7784,7 +7784,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -7862,7 +7862,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -7958,7 +7958,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8157,7 +8157,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8255,7 +8255,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8617,7 +8617,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8763,7 +8763,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8888,7 +8888,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -8939,7 +8939,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9148,7 +9148,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9179,7 +9179,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9278,7 +9278,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9409,7 +9409,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9531,7 +9531,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9562,7 +9562,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9627,7 +9627,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9750,7 +9750,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9781,7 +9781,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9812,7 +9812,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -9889,7 +9889,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10003,7 +10003,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10041,7 +10041,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10079,7 +10079,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10152,7 +10152,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10190,7 +10190,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10228,7 +10228,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10266,7 +10266,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10304,7 +10304,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" } @@ -10342,7 +10342,7 @@ }, { "type": "integer", - "description": "page size of results, maximum page size is 50", + "description": "page size of results", "name": "limit", "in": "query" }