You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
412 lines
10 KiB
412 lines
10 KiB
2 years ago
|
{
|
||
|
"openapi": "3.0.3",
|
||
|
"info": {
|
||
2 years ago
|
"title": "uppush",
|
||
2 years ago
|
"description": "Use Nextcloud as a push provider for mobile phones' notifications",
|
||
|
"license": {
|
||
|
"name": "agpl"
|
||
|
},
|
||
1 year ago
|
"version": "1.4.0"
|
||
2 years ago
|
},
|
||
|
"paths": {
|
||
|
"/index.php/apps/uppush": {
|
||
|
"get": {
|
||
|
"summary": "Check if the UnifiedPush provider is present",
|
||
1 year ago
|
"operationId": "check",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/keepalive": {
|
||
|
"put": {
|
||
2 years ago
|
"summary": "Set keepalive interval",
|
||
|
"description": "This endpoint requires admin access",
|
||
1 year ago
|
"operationId": "set-keepalive",
|
||
2 years ago
|
"parameters": [
|
||
|
{
|
||
|
"name": "keepalive",
|
||
|
"in": "query",
|
||
|
"description": "Keep alive value in seconds",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
2 years ago
|
"type": "integer"
|
||
2 years ago
|
}
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/device": {
|
||
|
"put": {
|
||
2 years ago
|
"summary": "Request to create a new deviceId",
|
||
1 year ago
|
"operationId": "create-device",
|
||
2 years ago
|
"parameters": [
|
||
|
{
|
||
|
"name": "deviceName",
|
||
|
"in": "query",
|
||
|
"description": "Name of the device",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success",
|
||
|
"deviceId"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
},
|
||
|
"deviceId": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/device/{deviceId}": {
|
||
|
"parameters": [
|
||
|
{
|
||
|
"name": "deviceId",
|
||
|
"in": "path",
|
||
|
"description": "ID of the device",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"get": {
|
||
2 years ago
|
"summary": "Request to get push messages",
|
||
2 years ago
|
"description": "This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app)",
|
||
1 year ago
|
"operationId": "sync-device",
|
||
2 years ago
|
"responses": {
|
||
|
"401": {
|
||
|
"description": "Missing permissions to sync device",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"delete": {
|
||
2 years ago
|
"summary": "Delete a device",
|
||
1 year ago
|
"operationId": "delete-device",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "Device deleted successfully",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/app": {
|
||
|
"put": {
|
||
2 years ago
|
"summary": "Create an authorization token for a new 3rd party service",
|
||
1 year ago
|
"operationId": "create-app",
|
||
2 years ago
|
"parameters": [
|
||
|
{
|
||
|
"name": "deviceId",
|
||
|
"in": "query",
|
||
|
"description": "ID of the device",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"name": "appName",
|
||
|
"in": "query",
|
||
|
"description": "Name of the app",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "App created successfully",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success",
|
||
|
"token"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
},
|
||
|
"token": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/app/{token}": {
|
||
|
"parameters": [
|
||
|
{
|
||
|
"name": "token",
|
||
|
"in": "path",
|
||
|
"description": "Token of the app",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"delete": {
|
||
2 years ago
|
"summary": "Delete an authorization token",
|
||
1 year ago
|
"operationId": "delete-app",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "App deleted successfully",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/push/{token}": {
|
||
|
"parameters": [
|
||
|
{
|
||
|
"name": "token",
|
||
|
"in": "path",
|
||
|
"description": "Token of the app to push to",
|
||
|
"required": true,
|
||
|
"schema": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
],
|
||
|
"post": {
|
||
2 years ago
|
"summary": "Receive notifications from 3rd parties",
|
||
1 year ago
|
"operationId": "push",
|
||
2 years ago
|
"responses": {
|
||
|
"201": {
|
||
|
"description": "Notification pushed successfully",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"success"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"success": {
|
||
|
"type": "boolean"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"get": {
|
||
|
"summary": "Unifiedpush discovery Following specifications",
|
||
1 year ago
|
"operationId": "unifiedpush-discovery",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"unifiedpush"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"unifiedpush": {
|
||
|
"required": [
|
||
|
"version"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"version": {
|
||
|
"type": "integer"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"/index.php/apps/uppush/gateway/matrix": {
|
||
|
"get": {
|
||
|
"summary": "Matrix Gateway discovery",
|
||
1 year ago
|
"operationId": "gateway-matrix-discovery",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"unifiedpush"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"unifiedpush": {
|
||
|
"required": [
|
||
|
"gateway"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"gateway": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"post": {
|
||
|
"summary": "Matrix Gateway",
|
||
1 year ago
|
"operationId": "gateway-matrix",
|
||
2 years ago
|
"responses": {
|
||
|
"200": {
|
||
|
"description": "",
|
||
|
"content": {
|
||
|
"application/json": {
|
||
|
"schema": {
|
||
|
"required": [
|
||
|
"rejected"
|
||
|
],
|
||
|
"type": "object",
|
||
|
"properties": {
|
||
|
"rejected": {
|
||
|
"type": "array",
|
||
|
"items": {
|
||
|
"type": "string"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"components": {
|
||
|
"schemas": {},
|
||
|
"securitySchemes": {
|
||
|
"basic_auth": {
|
||
|
"type": "http",
|
||
|
"scheme": "basic"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"security": [
|
||
|
{
|
||
|
"basic_auth": []
|
||
|
}
|
||
1 year ago
|
]
|
||
2 years ago
|
}
|