7 List uploaded apps
matu6968 edited this page 2024-11-21 12:48:31 +01:00

To list currently uploaded apps:

HTTP request type: GET

Authorization required: No

Endpoint: /apps or root of webserver

Output:

If it contains any app in apps.json:

[
  {
    "name": "Camera",
    "ver": "6",
    "appid": "734017834573",
    "info": "Take pictures using WebDesk! Handy for laptops, iOS support is buggy.",
    "pub": "macos.amfi",
    "path": "/uploads/Camera/index.js"
  }
]

name - App name
ver - App version
appid - Application ID (once set during uploading, it cannot be changed unless deleted)
info - Application description
pub - Application developer
path - Path to file in web server (generated by the web server)

Status code: 200

Otherwaise if it has no apps in apps.json:

[]

Status code: 200

If using a HTTP request other then GET:

{
	"error": "Method not allowed. Only GET is supported for this endpoint."
}

Status code: 405