{
  "schema": {
    "title": "REST API Call Plugin Configuration",
    "type": "object",
    "properties": {
      "protocol": {
        "title": "URI Scheme name",
        "type": "string"
      },
      "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": "string"
      },
      "userName": {
        "title": "Username",
        "type": "string"
      },
      "password": {
        "title": "Password",
        "type": "string"
      },
      "headers": {
        "title": "Request Headers",
        "type": "array",
        "items": {
          "title": "Request Header",
          "type": "object",
          "properties": {
            "key": {
              "title": "Key",
              "type": "string"
            },
            "value": {
              "title": "Value",
              "type": "string"
            }
          }
        }
      }
    },
    "required": [
      "protocol",
      "host",
      "port",
      "basePath",
      "authMethod"
    ]
  },
  "form": [
    {
      "key": "protocol",
      "type": "rc-select",
      "multiple": false,
      "items": [
        {
          "value": "http://",
          "label": "HTTP"
        },
        {
          "value": "https://",
          "label": "HTTPS"
        }
      ]
    },
    "host",
    "port",
    "basePath",
    {
      "key": "authMethod",
      "type": "rc-select",
      "multiple": false,
      "items": [
        {
          "value": "NO_AUTH",
          "label": "No authentication"
        },
        {
          "value": "BASIC_AUTH",
          "label": "Basic authentication"
        }
      ]
    },
    "userName",
    {
      "key": "password",
      "type": "password"
    },
    "headers"
  ]
}