Add REST API for openstackvtap app
Change-Id: I5d7697069d804eeb88eb57cbd845af90764c7a86
diff --git a/apps/openstackvtap/app/src/main/resources/definitions/OpenstackVtap.json b/apps/openstackvtap/app/src/main/resources/definitions/OpenstackVtap.json
new file mode 100644
index 0000000..4cd7c9e
--- /dev/null
+++ b/apps/openstackvtap/app/src/main/resources/definitions/OpenstackVtap.json
@@ -0,0 +1,45 @@
+{
+ "type": "object",
+ "required": [
+ "type",
+ "criterion"
+ ],
+ "properties": {
+ "type": {
+ "type": "string",
+ "example": "all"
+ },
+ "criterion": {
+ "type": "object",
+ "required": [
+ "srcIp",
+ "dstIp",
+ "ipProto",
+ "srcPort",
+ "dstPort"
+ ],
+ "properties": {
+ "srcIp": {
+ "type": "string",
+ "example": "10.20.1.1"
+ },
+ "dstIp": {
+ "type": "String",
+ "example": "10.20.1.2"
+ },
+ "ipProto": {
+ "type": "string",
+ "example": "tcp"
+ },
+ "srcPort": {
+ "type": "integer",
+ "example": 8080
+ },
+ "dstPort": {
+ "type": "integer",
+ "example": 9090
+ }
+ }
+ }
+ }
+}