REST interface for VPLS application

Change-Id: I2cab5bd6ff0ce026d0ef844bba6199fdd7f3e50d
This repository contains the files that provide a REST interface for VPLS
application.I create a new package in org.onosproject.vpls
called rest that contains the java classes VplsWebApplication and
VplsWebResource. The VplsWebResource provides create/update/read/delete
(CURD) functionality, leveraging the methods defined in the Vpls java
interface. I create a new folder called resources that contains
the json definitions and the files for the "web page".
diff --git a/apps/vpls/src/main/resources/definitions/VplsPost.json b/apps/vpls/src/main/resources/definitions/VplsPost.json
new file mode 100644
index 0000000..88da89a
--- /dev/null
+++ b/apps/vpls/src/main/resources/definitions/VplsPost.json
@@ -0,0 +1,75 @@
+{
+  "type": "object",
+  "title": "vpls",
+  "required": [
+    "vpls"
+  ],
+  "properties": {
+    "vpls": {
+      "type": "array",
+      "xml": {
+        "name": "vpls",
+        "wrapped": true
+      },
+      "items": {
+        "type": "object",
+        "title": "vpls",
+        "required": [
+          "name",
+          "encapsulation"
+        ],
+        "properties": {
+          "name": {
+            "type": "string",
+            "example": "VPLS1"
+          },
+          "encapsulation": {
+            "type": "string",
+            "example": "VLAN"
+          },
+          "interfaces": {
+            "type": "array",
+            "xml": {
+              "name": "interfaces",
+              "wrapped": true
+            },
+            "items": {
+              "type": "object",
+              "title": "interfaces",
+              "required": [
+                "name",
+                "connect point",
+                "ips",
+                "mac",
+                "vlan"
+              ],
+              "properties": {
+                "name": {
+                  "type": "string",
+                  "example": "h1"
+                },
+                "connect point": {
+                  "type": "string",
+                  "example": "of:0000000000000001/1"
+                },
+                "ips": {
+                  "type": "array",
+                  "example": ["10.0.1.1/24"]
+                },
+                "mac": {
+                  "type": "string",
+                  "example": "00:04:00:00:00:02"
+                },
+                "vlan": {
+                  "type": "string",
+                  "example": "100"
+                }
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+}
+