feat: user mentions

This commit is contained in:
2025-12-11 02:01:28 +02:00
parent 9762443685
commit 80c85a2cab
10 changed files with 660 additions and 68 deletions

View File

@@ -3769,6 +3769,137 @@
}
}
},
"/ocs/v2.php/apps/forum/api/users/autocomplete": {
"get": {
"operationId": "forum_user-autocomplete",
"summary": "Search Nextcloud users for autocomplete Returns users matching the search query in the format expected by NcRichContenteditable",
"tags": [
"forum_user"
],
"security": [
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"parameters": [
{
"name": "search",
"in": "query",
"description": "Search query (matches against user ID and display name)",
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "limit",
"in": "query",
"description": "Maximum number of results to return",
"schema": {
"type": "integer",
"format": "int64",
"default": 10
}
},
{
"name": "OCS-APIRequest",
"in": "header",
"description": "Required to be true for the API request to pass",
"required": true,
"schema": {
"type": "boolean",
"default": true
}
}
],
"responses": {
"200": {
"description": "Users returned",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"id",
"label",
"icon",
"source"
],
"properties": {
"id": {
"type": "string"
},
"label": {
"type": "string"
},
"icon": {
"type": "string"
},
"source": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
},
"401": {
"description": "Current user is not logged in",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
}
}
}
},
"/ocs/v2.php/apps/forum/api/users/{userId}": {
"get": {
"operationId": "forum_user-show",