Browse Source

update swagger docu

pull/30876/head
6543 1 month ago
parent
commit
0146a0242c
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      routers/api/v1/repo/repo.go
  2. 1
    1
      templates/swagger/v1_json.tmpl

+ 1
- 1
routers/api/v1/repo/repo.go View File

@@ -107,7 +107,7 @@ func Search(ctx *context.APIContext) {
// - name: sort
// in: query
// description: sort repos by attribute. Supported values are
// "alpha", "created", "updated", "size", and "id".
// "alpha", "created", "updated", "size", "git_size", "lfs_size", "num_stars", "num_forks" and "id".
// Default is "alpha"
// type: string
// - name: order

+ 1
- 1
templates/swagger/v1_json.tmpl View File

@@ -3689,7 +3689,7 @@
},
{
"type": "string",
"description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", and \"id\". Default is \"alpha\"",
"description": "sort repos by attribute. Supported values are \"alpha\", \"created\", \"updated\", \"size\", \"git_size\", \"lfs_size\", \"num_stars\", \"num_forks\" and \"id\". Default is \"alpha\"",
"name": "sort",
"in": "query"
},

Loading…
Cancel
Save