|
|
|
@ -206,6 +206,224 @@ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"paths": { |
|
|
|
|
"/ocs/v2.php/apps/user_status/api/v1/heartbeat": { |
|
|
|
|
"put": { |
|
|
|
|
"operationId": "heartbeat-heartbeat", |
|
|
|
|
"summary": "Keep the status alive", |
|
|
|
|
"tags": [ |
|
|
|
|
"heartbeat" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"name": "status", |
|
|
|
|
"in": "query", |
|
|
|
|
"description": "Only online, away", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"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": "Status successfully updated", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"$ref": "#/components/schemas/Private" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"400": { |
|
|
|
|
"description": "Invalid status to update", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"500": { |
|
|
|
|
"description": "", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"204": { |
|
|
|
|
"description": "User has no status to keep alive", |
|
|
|
|
"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/user_status/api/v1/predefined_statuses": { |
|
|
|
|
"get": { |
|
|
|
|
"operationId": "predefined_status-find-all", |
|
|
|
|
"summary": "Get all predefined messages", |
|
|
|
|
"tags": [ |
|
|
|
|
"predefined_status" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"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": "Predefined statuses 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": { |
|
|
|
|
"$ref": "#/components/schemas/Predefined" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/ocs/v2.php/apps/user_status/api/v1/statuses": { |
|
|
|
|
"get": { |
|
|
|
|
"operationId": "statuses-find-all", |
|
|
|
@ -846,224 +1064,6 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/ocs/v2.php/apps/user_status/api/v1/predefined_statuses": { |
|
|
|
|
"get": { |
|
|
|
|
"operationId": "predefined_status-find-all", |
|
|
|
|
"summary": "Get all predefined messages", |
|
|
|
|
"tags": [ |
|
|
|
|
"predefined_status" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"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": "Predefined statuses 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": { |
|
|
|
|
"$ref": "#/components/schemas/Predefined" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"/ocs/v2.php/apps/user_status/api/v1/heartbeat": { |
|
|
|
|
"put": { |
|
|
|
|
"operationId": "heartbeat-heartbeat", |
|
|
|
|
"summary": "Keep the status alive", |
|
|
|
|
"tags": [ |
|
|
|
|
"heartbeat" |
|
|
|
|
], |
|
|
|
|
"security": [ |
|
|
|
|
{ |
|
|
|
|
"bearer_auth": [] |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"basic_auth": [] |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
"parameters": [ |
|
|
|
|
{ |
|
|
|
|
"name": "status", |
|
|
|
|
"in": "query", |
|
|
|
|
"description": "Only online, away", |
|
|
|
|
"required": true, |
|
|
|
|
"schema": { |
|
|
|
|
"type": "string" |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
"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": "Status successfully updated", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": { |
|
|
|
|
"$ref": "#/components/schemas/Private" |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"400": { |
|
|
|
|
"description": "Invalid status to update", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"500": { |
|
|
|
|
"description": "", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"204": { |
|
|
|
|
"description": "User has no status to keep alive", |
|
|
|
|
"content": { |
|
|
|
|
"application/json": { |
|
|
|
|
"schema": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"ocs" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"ocs": { |
|
|
|
|
"type": "object", |
|
|
|
|
"required": [ |
|
|
|
|
"meta", |
|
|
|
|
"data" |
|
|
|
|
], |
|
|
|
|
"properties": { |
|
|
|
|
"meta": { |
|
|
|
|
"$ref": "#/components/schemas/OCSMeta" |
|
|
|
|
}, |
|
|
|
|
"data": {} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
"tags": [] |
|
|
|
|