{
  "schema": {
    "title": "REST API Call Plugin Configuration",
    "type": "object",
    "properties": {
      "host": {
        "title": "Host",
        "type": "string"
      },
      "port": {
        "title": "Port",
        "type": "integer",
        "default": 8080,
        "minimum": 0,
        "maximum": 65536
      },
      "basePath": {
        "title": "Base Path",
        "type": "string",
        "default": "/"
      },
      "authMethod": {
        "title": "Authentication method",
        "type": "array",
        "minItems" : 1,
        "items": [
          {
            "value": "NO_AUTH",
            "label": "No authentication"
          },
          {
            "value": "BASIC_AUTH",
            "label": "Basic authentication"
          }
        ],
        "uniqueItems": true
      },
      "userName": {
        "title": "Username",
        "type": "string"
      },
      "password": {
        "title": "Password",
        "type": "string"
      }
    },
    "required": [
      "host",
      "port",
      "basePath",
      "authMethod"
    ]
  },
  "form": [
    "host",
    "port",
    "basePath",
    {
      "key": "authMethod",
      "type": "rc-select",
      "multiple": false
    },
    "userName",
    {
      "key": "password",
      "type": "password"
    }
  ]
}