Fix repo AP outbox path typo
This commit is contained in:
parent
f1577c2f62
commit
48deb8e1f5
2 changed files with 34 additions and 34 deletions
|
@ -150,7 +150,7 @@ func RepoInbox(ctx *context.APIContext) {
|
||||||
|
|
||||||
// RepoOutbox function returns the repo's Outbox OrderedCollection
|
// RepoOutbox function returns the repo's Outbox OrderedCollection
|
||||||
func RepoOutbox(ctx *context.APIContext) {
|
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
|
// summary: Returns the outbox
|
||||||
// produces:
|
// produces:
|
||||||
|
|
|
@ -23,39 +23,6 @@
|
||||||
},
|
},
|
||||||
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
|
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
|
||||||
"paths": {
|
"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}": {
|
"/activitypub/repo/{username}/{reponame}": {
|
||||||
"get": {
|
"get": {
|
||||||
"produces": [
|
"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}": {
|
"/activitypub/user/{username}": {
|
||||||
"get": {
|
"get": {
|
||||||
"produces": [
|
"produces": [
|
||||||
|
|
Loading…
Add table
Reference in a new issue