fix swagger comments in repo adoption routes

This commit is contained in:
☙◦ The Tablet ❀ GamerGirlandCo ◦❧
2026-04-02 20:01:00 -04:00
parent 3c9dc0daf4
commit d2b13f7749
3 changed files with 16 additions and 166 deletions
+14 -2
View File
@@ -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"