Add new rest api to get ports for all devices

Currently, the onos provides a rest api to get port status.
But if we want to get port status for all devices, we need to call rest api with each device ids.

So, this changes provides a rest api to get ports for all devices.

Change-Id: Iaa123ab341890684b7f0991d8cc75d73cd76c9cb
diff --git a/web/api/src/main/resources/definitions/DevicesGetPorts.json b/web/api/src/main/resources/definitions/DevicesGetPorts.json
new file mode 100644
index 0000000..453c91a
--- /dev/null
+++ b/web/api/src/main/resources/definitions/DevicesGetPorts.json
@@ -0,0 +1,64 @@
+{
+  "type": "object",
+  "title": "device",
+  "required": [
+    "ports"
+  ],
+  "properties": {
+    "ports": {
+      "type": "array",
+      "xml": {
+        "name": "ports",
+        "wrapped": true
+      },
+      "items": {
+        "type": "object",
+        "title": "port",
+        "required": [
+          "element",
+          "port",
+          "isEnabled",
+          "type",
+          "portSpeed",
+          "annotations"
+        ],
+        "properties": {
+          "element": {
+            "type": "string",
+            "example": "of:0000000000000001"
+          },
+          "port": {
+            "type": "string",
+            "example": "2"
+          },
+          "isEnabled": {
+            "type": "boolean",
+            "example": true
+          },
+          "type": {
+            "type": "string",
+            "example": "copper"
+          },
+          "portSpeed": {
+            "type": "integer",
+            "format": "int64",
+            "example": 0
+          },
+          "annotations": {
+            "type": "object",
+            "title": "annotations",
+            "required": [
+              "portName"
+            ],
+            "properties": {
+              "portName": {
+                "type": "string",
+                "example": "s1"
+              }
+            }
+          }
+        }
+      }
+    }
+  }
+}