Return web server's MIME handlers

This function lists all of Apache's MIME handlers.

Important:

When you disable the WebServer role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
type
required
string

Whether to retrieve system or user handlers.

Enum: "system" "user"
Example: type=user
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Mime/list_handlers
Request samples
uapi --output=jsonpretty \
  --user=username \
  Mime \
  list_handlers \
  type='user'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "list_handlers",
  • "module": "Mime",
  • "result": {
    • "data": [
      • {
        • "extension": ".foo",
        • "handler": "text-foo",
        • "origin": "user"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}