ONOS-4077: REST API's for virtual networks, devices, ports, links: add missing onos.rsModel statements + fix example field in JSON files
Change-Id: I1ae2300143a0a56e5413f8837cea3016d964cb6c
diff --git a/web/api/src/main/resources/definitions/VirtualDevices.json b/web/api/src/main/resources/definitions/VirtualDevices.json
new file mode 100644
index 0000000..61e4071
--- /dev/null
+++ b/web/api/src/main/resources/definitions/VirtualDevices.json
@@ -0,0 +1,36 @@
+{
+ "type": "object",
+ "title": "VirtualDevices",
+ "required": [
+ "devices"
+ ],
+ "properties": {
+ "devices": {
+ "type": "array",
+ "xml": {
+ "name": "devices",
+ "wrapped": true
+ },
+ "items": {
+ "type": "object",
+ "title": "vdev",
+ "required": [
+ "networkId",
+ "deviceId"
+ ],
+ "properties": {
+ "networkId": {
+ "type": "int64",
+ "description": "Network identifier",
+ "example": 3
+ },
+ "deviceId": {
+ "type": "String",
+ "description": "Device identifier",
+ "example": "of:0000000000000042"
+ }
+ }
+ }
+ }
+ }
+}