diff options
author | Cirno the Strongest <1447794+CirnoT@users.noreply.github.com> | 2020-06-09 06:57:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-09 00:57:38 -0400 |
commit | 27a6e039063c394a1bddeb8897dec2e3742dd13e (patch) | |
tree | 2f43edfc885f5504419d1b599ea42eb021e1ba99 /routers/api | |
parent | cefbf73aea912c510a8dd194532233076b822d37 (diff) | |
download | gitea-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')
39 files changed, 61 insertions, 61 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": |