summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index fe3f31b13d..a8ba40740e 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -23,7 +23,7 @@
},
"basePath": "{{AppSubUrl | JSEscape | Safe}}/api/v1",
"paths": {
- "/activitypub/user/{username}": {
+ "/activitypub/user-id/{user-id}": {
"get": {
"produces": [
"application/json"
@@ -35,9 +35,9 @@
"operationId": "activitypubPerson",
"parameters": [
{
- "type": "string",
- "description": "username of the user",
- "name": "username",
+ "type": "integer",
+ "description": "user ID of the user",
+ "name": "user-id",
"in": "path",
"required": true
}
@@ -49,7 +49,7 @@
}
}
},
- "/activitypub/user/{username}/inbox": {
+ "/activitypub/user-id/{user-id}/inbox": {
"post": {
"produces": [
"application/json"
@@ -61,9 +61,9 @@
"operationId": "activitypubPersonInbox",
"parameters": [
{
- "type": "string",
- "description": "username of the user",
- "name": "username",
+ "type": "integer",
+ "description": "user ID of the user",
+ "name": "user-id",
"in": "path",
"required": true
}