diff --git a/routers/api/v1/activitypub/repo.go b/routers/api/v1/activitypub/repo.go index 7060a63b9..222b7188c 100644 --- a/routers/api/v1/activitypub/repo.go +++ b/routers/api/v1/activitypub/repo.go @@ -150,7 +150,7 @@ func RepoInbox(ctx *context.APIContext) { // RepoOutbox function returns the repo's Outbox OrderedCollection func RepoOutbox(ctx *context.APIContext) { - // swagger:operation GET /activitypub/repo/{username}/outbox activitypub activitypubPersonOutbox + // swagger:operation GET /activitypub/repo/{username}/{reponame}/outbox activitypub activitypubPersonOutbox // --- // summary: Returns the outbox // produces: diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 274c9e021..017933751 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -23,39 +23,6 @@ }, "basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1", "paths": { - "/activitypub/repo/{username}/outbox": { - "get": { - "produces": [ - "application/activity+json" - ], - "tags": [ - "activitypub" - ], - "summary": "Returns the outbox", - "operationId": "activitypubPersonOutbox", - "parameters": [ - { - "type": "string", - "description": "username of the user", - "name": "username", - "in": "path", - "required": true - }, - { - "type": "string", - "description": "name of the repository", - "name": "reponame", - "in": "path", - "required": true - } - ], - "responses": { - "200": { - "$ref": "#/responses/ActivityPub" - } - } - } - }, "/activitypub/repo/{username}/{reponame}": { "get": { "produces": [ @@ -155,6 +122,39 @@ } } }, + "/activitypub/repo/{username}/{reponame}/outbox": { + "get": { + "produces": [ + "application/activity+json" + ], + "tags": [ + "activitypub" + ], + "summary": "Returns the outbox", + "operationId": "activitypubPersonOutbox", + "parameters": [ + { + "type": "string", + "description": "username of the user", + "name": "username", + "in": "path", + "required": true + }, + { + "type": "string", + "description": "name of the repository", + "name": "reponame", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/ActivityPub" + } + } + } + }, "/activitypub/user/{username}": { "get": { "produces": [