THIS IS A TEST INSTANCE ONLY! REPOSITORIES CAN BE DELETED AT ANY TIME!

Explorar el Código

Document possibility to limit API Repo search to topics only. (#7957)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
tags/v1.10.0-rc1
David Svantesson techknowlogick hace 2 meses
padre
commit
26af3401c3
Se han modificado 2 ficheros con 10 adiciones y 0 borrados
  1. +4
    -0
      routers/api/v1/repo/repo.go
  2. +6
    -0
      templates/swagger/v1_json.tmpl

+ 4
- 0
routers/api/v1/repo/repo.go Ver fichero

@@ -51,6 +51,10 @@ func Search(ctx *context.APIContext) {
// in: query
// description: keyword
// type: string
// - name: topic
// in: query
// description: Limit search to repositories with keyword as topic
// type: boolean
// - name: uid
// in: query
// description: search only for repos that the user with the given id owns or contributes to

+ 6
- 0
templates/swagger/v1_json.tmpl Ver fichero

@@ -1093,6 +1093,12 @@
"name": "q",
"in": "query"
},
{
"type": "boolean",
"description": "Limit search to repositories with keyword as topic",
"name": "topic",
"in": "query"
},
{
"type": "integer",
"format": "int64",

Cargando…
Cancelar
Guardar