mirror of
https://github.com/go-gitea/gitea.git
synced 2026-09-02 04:11:00 +02:00
fix swagger comments in repo adoption routes
This commit is contained in:
@@ -125,7 +125,7 @@ func AdoptRepository(ctx *context.APIContext) {
|
||||
}
|
||||
|
||||
func AdoptGroupRepository(ctx *context.APIContext) {
|
||||
// swagger:operation POST /admin/unadopted/{owner}/{group_id}/{repo} admin adminAdoptRepository
|
||||
// swagger:operation POST /admin/unadopted/{owner}/group/{group_id}/{repo} admin adminAdoptRepositoryInGroup
|
||||
// ---
|
||||
// summary: Adopt unadopted files as a repository
|
||||
// produces:
|
||||
@@ -141,6 +141,12 @@ func AdoptGroupRepository(ctx *context.APIContext) {
|
||||
// description: name of the repo
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: group_id
|
||||
// in: path
|
||||
// description: group ID of the repo
|
||||
// type: integer
|
||||
// format: int64
|
||||
// required: true
|
||||
// responses:
|
||||
// "204":
|
||||
// "$ref": "#/responses/empty"
|
||||
@@ -217,7 +223,7 @@ func DeleteUnadoptedRepository(ctx *context.APIContext) {
|
||||
}
|
||||
|
||||
func DeleteUnadoptedRepositoryInGroup(ctx *context.APIContext) {
|
||||
// swagger:operation DELETE /admin/unadopted/{owner}/{group_id}/{repo} admin adminDeleteUnadoptedRepository
|
||||
// swagger:operation DELETE /admin/unadopted/{owner}/group/{group_id}/{repo} admin adminDeleteUnadoptedRepositoryInGroup
|
||||
// ---
|
||||
// summary: Delete unadopted files
|
||||
// produces:
|
||||
@@ -233,6 +239,12 @@ func DeleteUnadoptedRepositoryInGroup(ctx *context.APIContext) {
|
||||
// description: name of the repo
|
||||
// type: string
|
||||
// required: true
|
||||
// - name: group_id
|
||||
// in: path
|
||||
// description: group ID of the repo
|
||||
// type: integer
|
||||
// format: int64
|
||||
// required: true
|
||||
// responses:
|
||||
// "204":
|
||||
// "$ref": "#/responses/empty"
|
||||
|
||||
Reference in New Issue
Block a user