aboutsummaryrefslogtreecommitdiff
path: root/templates/swagger/v1_json.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/swagger/v1_json.tmpl')
-rw-r--r--templates/swagger/v1_json.tmpl140
1 files changed, 129 insertions, 11 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index cd3625858..23d700ded 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -31,7 +31,7 @@
"tags": [
"activitypub"
],
- "summary": "Returns the person",
+ "summary": "Returns the Person actor for a user",
"operationId": "activitypubPerson",
"parameters": [
{
@@ -49,6 +49,58 @@
}
}
},
+ "/activitypub/user/{username}/followers": {
+ "get": {
+ "produces": [
+ "application/activity+json"
+ ],
+ "tags": [
+ "activitypub"
+ ],
+ "summary": "Returns the Liked Collection",
+ "operationId": "activitypubPersonLiked",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "username of the user",
+ "name": "username",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ActivityPub"
+ }
+ }
+ }
+ },
+ "/activitypub/user/{username}/following": {
+ "get": {
+ "produces": [
+ "application/activity+json"
+ ],
+ "tags": [
+ "activitypub"
+ ],
+ "summary": "Returns the Following Collection",
+ "operationId": "activitypubPersonFollowing",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "username of the user",
+ "name": "username",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/ActivityPub"
+ }
+ }
+ }
+ },
"/activitypub/user/{username}/inbox": {
"post": {
"produces": [
@@ -76,15 +128,15 @@
}
},
"/activitypub/user/{username}/outbox": {
- "post": {
+ "get": {
"produces": [
"application/activity+json"
],
"tags": [
"activitypub"
],
- "summary": "Send to the inbox",
- "operationId": "activitypubPersonInbox",
+ "summary": "Returns the outbox",
+ "operationId": "activitypubPersonOutbox",
"parameters": [
{
"type": "string",
@@ -92,16 +144,23 @@
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repository",
+ "name": "reponame",
+ "in": "path",
+ "required": true
}
],
"responses": {
- "204": {
- "$ref": "#/responses/empty"
+ "200": {
+ "$ref": "#/responses/ActivityPub"
}
}
}
},
- "/activitypub/user/{username}/following": {
+ "/activitypub/user/{username}/{reponame}": {
"get": {
"produces": [
"application/activity+json"
@@ -109,8 +168,8 @@
"tags": [
"activitypub"
],
- "summary": "Returns the following collection",
- "operationId": "activitypubPersonFollowing",
+ "summary": "Returns the repository",
+ "operationId": "activitypubRepo",
"parameters": [
{
"type": "string",
@@ -118,6 +177,13 @@
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repository",
+ "name": "reponame",
+ "in": "path",
+ "required": true
}
],
"responses": {
@@ -127,7 +193,7 @@
}
}
},
- "/activitypub/user/{username}/followers": {
+ "/activitypub/user/{username}/{reponame}/followers": {
"get": {
"produces": [
"application/activity+json"
@@ -136,7 +202,7 @@
"activitypub"
],
"summary": "Returns the followers collection",
- "operationId": "activitypubPersonFollowers",
+ "operationId": "activitypubRepoFollowers",
"parameters": [
{
"type": "string",
@@ -144,6 +210,13 @@
"name": "username",
"in": "path",
"required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repository",
+ "name": "reponame",
+ "in": "path",
+ "required": true
}
],
"responses": {
@@ -153,6 +226,39 @@
}
}
},
+ "/activitypub/user/{username}/{reponame}/inbox": {
+ "post": {
+ "produces": [
+ "application/activity+json"
+ ],
+ "tags": [
+ "activitypub"
+ ],
+ "summary": "Send to the inbox",
+ "operationId": "activitypubRepoInbox",
+ "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": {
+ "204": {
+ "$ref": "#/responses/empty"
+ }
+ }
+ }
+ },
"/admin/cron": {
"get": {
"produces": [
@@ -9090,6 +9196,9 @@
},
"404": {
"$ref": "#/responses/notFound"
+ },
+ "405": {
+ "$ref": "#/responses/empty"
}
}
}
@@ -9173,6 +9282,9 @@
},
"404": {
"$ref": "#/responses/notFound"
+ },
+ "405": {
+ "$ref": "#/responses/empty"
}
}
},
@@ -9941,6 +10053,9 @@
"404": {
"$ref": "#/responses/notFound"
},
+ "405": {
+ "$ref": "#/responses/empty"
+ },
"409": {
"$ref": "#/responses/conflict"
}
@@ -10028,6 +10143,9 @@
"404": {
"$ref": "#/responses/notFound"
},
+ "405": {
+ "$ref": "#/responses/empty"
+ },
"409": {
"$ref": "#/responses/conflict"
}