Skip to content

Commit

Permalink
chore: Update OpenAPI
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
  • Loading branch information
danxuliu authored and nickvergessen committed Jul 24, 2024
1 parent 7056338 commit d891573
Show file tree
Hide file tree
Showing 6 changed files with 534 additions and 12 deletions.
153 changes: 151 additions & 2 deletions openapi-federation.json
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,8 @@
"/ocs/v2.php/apps/spreed/api/{apiVersion}/room/{token}/federation/active": {
"post": {
"operationId": "room-join-federated-room",
"summary": "Fake join a room on the host server to verify the federated user is still part of it",
"summary": "Join room on the host server using the session id of the federated user.",
"description": "The session id can be null only for requests from Talk < 20.",
"tags": [
"room"
],
Expand All @@ -1648,6 +1649,25 @@
"basic_auth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"sessionId"
],
"properties": {
"sessionId": {
"type": "string",
"description": "Federated session id to join with"
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
Expand Down Expand Up @@ -1684,7 +1704,7 @@
],
"responses": {
"200": {
"description": "Federated user is still part of the room",
"description": "Federated user joined the room",
"headers": {
"X-Nextcloud-Talk-Hash": {
"schema": {
Expand Down Expand Up @@ -1749,6 +1769,135 @@
}
}
}
},
"delete": {
"operationId": "room-leave-federated-room",
"summary": "Leave room on the host server using the session id of the federated user.",
"tags": [
"room"
],
"security": [
{},
{
"bearer_auth": []
},
{
"basic_auth": []
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"sessionId"
],
"properties": {
"sessionId": {
"type": "string",
"description": "Federated session id to leave with"
}
}
}
}
}
},
"parameters": [
{
"name": "apiVersion",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"v4"
],
"default": "v4"
}
},
{
"name": "token",
"in": "path",
"description": "Token of the room",
"required": true,
"schema": {
"type": "string",
"pattern": "^[a-z0-9]{4,30}$"
}
},
{
"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": "Successfully left the room",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Room not found (non-federation request)",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"nullable": true
}
}
}
}
}
}
}
}
}
}
}
},
Expand Down
Loading

0 comments on commit d891573

Please sign in to comment.