Skip to content

Commit 04a11c8

Browse files
Put parameters related to keyword directly after it
Signed-off-by: David Svantesson <[email protected]>
1 parent 231be5a commit 04a11c8

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

routers/api/v1/repo/repo.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ func Search(ctx *context.APIContext) {
5555
// in: query
5656
// description: Limit search to repositories with keyword as topic
5757
// type: boolean
58+
// - name: includeDesc
59+
// in: query
60+
// description: include search of keyword within repository description
61+
// type: boolean
5862
// - name: uid
5963
// in: query
6064
// description: search only for repos that the user with the given id owns or contributes to
@@ -97,10 +101,6 @@ func Search(ctx *context.APIContext) {
97101
// description: sort order, either "asc" (ascending) or "desc" (descending).
98102
// Default is "asc", ignored if "sort" is not specified.
99103
// type: string
100-
// - name: includeDesc
101-
// in: query
102-
// description: include search of keyword within repository description
103-
// type: boolean
104104
// responses:
105105
// "200":
106106
// "$ref": "#/responses/SearchResults"

templates/swagger/v1_json.tmpl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,12 @@
10991099
"name": "topic",
11001100
"in": "query"
11011101
},
1102+
{
1103+
"type": "boolean",
1104+
"description": "include search of keyword within repository description",
1105+
"name": "includeDesc",
1106+
"in": "query"
1107+
},
11021108
{
11031109
"type": "integer",
11041110
"format": "int64",
@@ -1154,12 +1160,6 @@
11541160
"description": "sort order, either \"asc\" (ascending) or \"desc\" (descending). Default is \"asc\", ignored if \"sort\" is not specified.",
11551161
"name": "order",
11561162
"in": "query"
1157-
},
1158-
{
1159-
"type": "boolean",
1160-
"description": "include search of keyword within repository description",
1161-
"name": "includeDesc",
1162-
"in": "query"
11631163
}
11641164
],
11651165
"responses": {

0 commit comments

Comments
 (0)