{
  "loglevel": "trace",
  "servicename": "n4jsvc",
  "routes": [
    {
      "route": "/images",
      "type": "static",
      "configured": true,
      "routeclass": "./images",
      "description": "app specific images are served from the directory ./images under "
    },
    {
      "route": "/n4jsvc/version",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcVersion",
      "description": "Get the version information of the underlying databse engine (Neo4j)",
      "examples": [
        {
          "param": "/n4jsvc/version"
        }
      ]
    },
    {
      "route": "/n4jsvc/data",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcData",
      "description": "impport data to graph or export data to graph",
      "paramschema": {
        "type": "object",
        "properties": {
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/data"
        }
      ]
    },
    {
      "route": "/n4jsvc/data",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcData",
      "description": "impport data to graph",
      "bodyschema": {
        "type": "object",
        "oneOf": [
          {
            "required": [
              "urlcsv",
              "label"
            ]
          },
          {
            "required": [
              "pathcsv",
              "label"
            ]
          }
        ],
        "dependencies": {
          "relationship": {
            "required":[
            "label2"
            ],
            "not": {
              "required": [
                "map"
              ]
            }
          },
          "sourceid": [
            "destinationid"
          ]
        },
        "properties": {
          "urlcsv": {
            "type": "string",
            "format": "uri",
            "description": "uri to import data from"
          },
          "pathcsv": {
            "type": "string",
            "description": "only filename for for import. It's expected to be in the import directory of neo4j's"
          },
          "label": {
            "type": "string",
            "description": "node label e.g. Product, Artist, Person etc."
          },
          "relationship": {
            "type": "string",
            "description": "relationship can be ACTED_IN, DIRECTED_BY, HAS_A, IS_A etc.."
          },
          "multipleprops": {
            "type": "boolean",
            "description": "if present and is true, expects multiple properties for the same node. It does create reltionsip instead of merge."
          },
          "label2": {
            "type": "string",
            "description": "node label2 the relationship from label -> label2"
          },
          "sourceid": {
            "type": "string",
            "description": "used to search for existance and avoid creating duplicate ids has to be unique across all node labels"
          },
          "destinationid": {
            "type": "string",
            "description": "has to be unique across all node labels"
          },
          "chunk": {
            "type": "integer",
            "description": "Since load csv can take time chunk can be set to determine the number of rows to do periodic commit to speed up the process. Default value is 1000",
            "minimum": 100
          },
          "map": {
            "type": "array",
            "items": {
              "type": "object",
              "oneOf": [
                {
                  "required": [
                    "source",
                    "type",
                    "destination"
                  ]
                },
                {
                  "required": [
                    "expression",
                    "destination"
                  ]
                },
                {
                  "required": [
                    "default",
                    "destination"
                  ]
                }
              ],
              "properties": {
                "source": {
                  "type": "string"
                },
                "expression": {
                  "type": "string",
                  "description": "special expression (limited javascript expressions) in terms of the column names in csv header. Each occurence of column name is prefixed with $ e.g. $columnName. After the expression is evaluated for each row substituting the actual value in the csv for the $variable. If evaluation is successful it will be the property value otherwise the string will be the property value."
                },
                "default": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "Assign the default value to this property. Value can be null"
                },
                "type": {
                  "type": {
                    "enum": [
                      "string",
                      "integer",
                      "number",
                      "boolean",
                      "date",
                      "literal"
                    ]
                  }
                },
                "destination": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/products.csv",
            "label": "Product",
            "sourceid": "productID",
            "destinationid": "productID",
            "map": [
              {
                "source": "unitPrice",
                "type": "number",
                "destination": "unitPrice"
              },
              {
                "source": "unitsInStock",
                "type": "integer",
                "destination": "unitsInStock"
              },
              {
                "source": "unitsOnOrder",
                "type": "integer",
                "destination": "unitsOnOrder"
              },
              {
                "source": "reorderLevel",
                "type": "integer",
                "destination": "reorderLevel"
              },
              {
                "source": "(row.discontinued <> \"0\")",
                "type": "literal",
                "destination": "discontinued"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/categories.csv",
            "label": "Category"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/suppliers.csv",
            "label": "Supplier"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/customers.csv",
            "label": "Customer"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/orders.csv",
            "label": "Order"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "urlcsv": "http://data.neo4j.com/northwind/order-details.csv",
            "label": "OrderDetails",
            "map": [
              {
                "source": "quantity",
                "type": "integer",
                "destination": "quantity"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./music.csv",
            "label": "Band",
            "sourceid": "Name",
            "destinationid": "Name",
            "map": [
              {
                "source": "Id",
                "type": "string",
                "destination": "Id"
              },
              {
                "source": "Name",
                "type": "string",
                "destination": "Name"
              },
              {
                "source": "Year",
                "type": "integer",
                "destination": "Year"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./music.csv",
            "label": "Band",
            "sourceid": "Name",
            "destinationid": "Name",
            "map": [
              {
                "source": "Id",
                "type": "string",
                "destination": "Id"
              },
              {
                "source": "Name",
                "type": "string",
                "destination": "Name"
              },
              {
                "source": "Year",
                "type": "integer",
                "destination": "Year"
              },
              {
                "expression": "$Name$-$Year$",
                "type": "string",
                "destination": "NameYear"
              },
              {
                "expression": "$Id$+$Year$",
                "type": "string",
                "destination": "IdYear"
              },
              {
                "expression": "$Name$.slice(0, 1)",
                "type": "string",
                "destination": "Initial"
              },
              {
                "default": "",
                "type": "string",
                "destination": "defprop"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./movies.csv",
            "label": "Movie",
            "sourceid": "Title",
            "destinationid": "Title",
            "map": [
              {
                "source": "Title",
                "type": "string",
                "destination": "Title"
              },
              {
                "source": "Genre",
                "type": "string",
                "destination": "Genre"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./actors.csv",
            "label": "Person",
            "sourceid": "Name",
            "destinationid": "Name",
            "map": [
              {
                "source": "Name",
                "type": "string",
                "destination": "Name"
              },
              {
                "source": "Age",
                "type": "integer",
                "destination": "Age"
              },
              {
                "expression": "$Name$+'-'+$Age$",
                "type": "string",
                "destination": "NameAge"
              },
              {
                "expression": "$Age$+$Age$",
                "type": "string",
                "destination": "TwiceAge"
              },
              {
                "expression": "$Name$.slice(0, 1)",
                "type": "string",
                "destination": "Initial"
              },
              {
                "default": "Joe",
                "type": "string",
                "destination": "defName"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./directormovierel.csv",
            "label": "Person",
            "relationship": "DIRECTED",
            "label2": "Movie"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./personmovierel.csv",
            "multipleprops": true,
            "label": "Person",
            "relationship": "ACTED_IN",
            "label2": "Movie"
          }
        },
        {
          "param": "/n4jsvc/data",
          "payload": {
            "pathcsv": "./artists.csv",
            "label": "Artist",
            "map": [
              {
                "source": "Name",
                "type": "string",
                "destination": "Name"
              },
              {
                "source": "Age",
                "type": "integer",
                "destination": "Age"
              }
            ]
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/data",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcData",
      "description": "impport data to graph or export data to graph",
      "examples": [
        {
          "param": "/n4jsvc/data"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodes",
      "description": "get method for route /n4jsvc/nodes",
      "paramschema": {
        "type": "object",
        "properties": {
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes"
        },
        {
          "param": "/n4jsvc/nodes?limit=10"
        },
        {
          "param": "/n4jsvc/nodes?limit=2&skip=2"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcNodes",
      "description": "post method for route /n4jsvc/nodes",
      "bodyschema": {
        "type": "object",
        "required": [
          "label",
          "properties"
        ],
        "properties": {
          "label": {
            "description": "label associated with the node e.g. Person, Product",
            "type": "string"
          },
          "properties": {
            "description": "properties of the node specified as name value pairs",
            "type": "object",
            "patternProperties": {
              "^[A-Za-z][A-Za-z0-9-_]*$": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "personID": 8,
              "firstname": "John",
              "lastname": "Wayne",
              "email": "john@cirruswave.com"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Snippet",
            "properties": {
              "Summary": "John mentioned a lot of things about CirrusWave, explained microservices development",
              "snippetID": 24,
              "timestamp": "May 10, 2020 15:11:40"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Movie",
            "properties": {
              "Title": "The Matrix",
              "Genre": "Science Fiction"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Movie",
            "properties": {
              "Title": "Pulp Fiction",
              "Genre": "Drama"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Movie",
            "properties": {
              "Title": "Sleepless in Seattle",
              "Genre": "Drama"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "Name": "Quentin Tarantino",
              "Age": 55
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "Name": "Kira Knighly",
              "Age": 35
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "Name": "Meg Ryan",
              "Age": 47
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "Name": "Keanu Reeves",
              "Age": "53"
            }
          }
        },
        {
          "param": "/n4jsvc/nodes",
          "payload": {
            "label": "Person",
            "properties": {
              "Name": "Tom Hanks",
              "Age": "53"
            }
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesName",
      "description": "get nodes matching the value for the node named property",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/Phabi"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcPropertiesName",
      "description": "delete nodes matching the value for the node named property",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of named node",
            "type": "string"
          },
          "value": {
            "description": "value for name"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firtname/John"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Kira Knightly"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/properties",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNameProperties",
      "description": "get nodes matching the value for the node named property",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of property",
            "type": "string"
          },
          "value": {
            "description": "value for property"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/properties"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/properties"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/properties"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/properties",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcPropertiesNameProperties",
      "description": "add a new property for the named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "description": "name of property",
            "type": "string"
          },
          "value": {
            "description": "value for property"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/properties",
          "payload": {
            "name": "gender",
            "value": "male"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/properties",
          "payload": {
            "name": "weight",
            "value": "32oz"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Kira Knightly/properties",
          "payload": {
            "name": "age",
            "value": "35"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/properties",
          "payload": {
            "name": "gender",
            "value": "M"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/properties/:propertiesid",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNamePropertiesPropertiesid",
      "description": "get a specific property of the named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "propertiesid"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "propertiesid": {
            "description": "name for propertiesid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/properties/gender"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/properties/weight"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Meg Ryan/properties/age"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/properties/age"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/properties/:propertiesid",
      "type": "put",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "putN4jsvcPropertiesNamePropertiesPropertiesid",
      "description": "update a specific property value",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "propertiesid"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "propertiesid": {
            "description": "value for propertiesid",
            "type": "string"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "value for value"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/properties/gender",
          "payload": {
            "value": "not declared"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/properties/weight",
          "payload": {
            "value": "12oz"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Meg Ryan/properties/age",
          "payload": {
            "value": "35"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/properties/age",
          "payload": {
            "value": "45"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/properties/:propertiesid",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcPropertiesNamePropertiesPropertiesid",
      "description": "delete specific property in the named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "propertiesid"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "propertiesid": {
            "description": "value for propertiesid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/properties/gender"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/properties/weight"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Meg Ryan/properties/age"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/properties/age"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/labels",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNameLabels",
      "description": "get labels for named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/personID/8/labels"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/firstname/John/labels"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/labels"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/labels"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/labels",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcPropertiesNameLabels",
      "description": "create a named node label",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "description": "value for label",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/personID/8/labels",
          "payload": {
            "label": "Admin"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/labels",
          "payload": {
            "label": "SpecialProduct"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/labels",
          "payload": {
            "label": "Director"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/labels/:labeldel",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcPropertiesNameLabelsLabel",
      "description": "delete label for a named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "labeldel"
        ],
        "properties": {
          "label": {
            "description": "Label for the node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "labeldel": {
            "description": "label to delete, this can't be equal to the label. There has to be at least one label on a node",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/personID/8/labels/Admin"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/labels/SpecialProduct"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/labels/labels/SpecialProduct"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/labels/Director"
        },
        {
          "param": "/n4jsvc/nmnodes/Persion/Name/Quentin Tarantino/labels/SpecialPerson"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/relationships",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNameRelationships",
      "description": "get relationships for a named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Person/personID/8/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Meg Ryan/relationships"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:lstart/:nstart/:vstart/:lend/:nend/:vend/relationships",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNamestartNameendRelationships",
      "description": "get relationships between properties",
      "paramschema": {
        "type": "object",
        "required": [
          "lstart",
          "nstart",
          "vstart",
          "lend",
          "nend",
          "vstart"
        ],
        "properties": {
          "lstart": {
            "description": "label for start named node",
            "type": "string"
          },
          "nstart": {
            "description": "name of start named node",
            "type": "string"
          },
          "vstart": {
            "description": "value for start named node"
          },
          "lend": {
            "description": "label for the end named node",
            "type": "string"
          },
          "nend": {
            "description": "name of end named node",
            "type": "string"
          },
          "vend": {
            "description": "value for end named node"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Snippet/snippetID/24/Person/personID/8/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/Category/categoryName/Beverages/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Keanu Reeves/Movie/Title/The Matrix/relationships"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/Movie/Title/Pulp Fiction/relationships"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:lstart/:nstart/:vstart/:lend/:nend/:vend/relationships",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcPropertiesNamestartNameendRelationships",
      "description": "add a relationship between the naed nodes",
      "paramschema": {
        "type": "object",
        "required": [
          "lstart",
          "nstart",
          "vstart",
          "lend",
          "nend",
          "vstart"
        ],
        "properties": {
          "lstart": {
            "description": "label for start named node",
            "type": "string"
          },
          "nstart": {
            "description": "name of start named node",
            "type": "string"
          },
          "vstart": {
            "description": "value for start named node"
          },
          "lend": {
            "description": "label for the end named node",
            "type": "string"
          },
          "nend": {
            "description": "name of end named node",
            "type": "string"
          },
          "vend": {
            "description": "value for end named node"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "relationshipsid"
        ],
        "properties": {
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          },
          "properties": {
            "description": "optional properties of the relationships specified as name value pairs.",
            "type": "object",
            "patternProperties": {
              "^[A-Za-z][A-Za-z0-9-_]*$": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Snippet/snippetID/24/Person/personID/8/relationships",
          "payload": {
            "relationshipsid": "PRODUCED_BY",
            "properties": {
              "seq": "1"
            }
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Keanu Reeves/Movie/Title/The Matrix/relationships",
          "payload": {
            "relationshipsid": "ACTED_IN",
            "properties": {
              "role": "neo"
            }
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/relationships/Category/categoryName/Beverages/relationships",
          "payload": {
            "relationshipid": "HASCAFFINE"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Keanu Reeves/Movie/Title/The Matrix/relationships",
          "payload": {
            "relationshipsid": "SCREENPLAY"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/Movie/Title/Pulp Fiction/relationships",
          "payload": {
            "relationshipsid": "DIRECTED"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/Movie/Title/The Matrix/relationships",
          "payload": {
            "relationshipsid": "DIRECTED"
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Meg Ryan/Movie/Title/Sleepless in Seattle/relationships",
          "payload": {
            "relationshipsid": "ACTED_IN",
            "properties": {
              "role": "Annie"
            }
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Tom Hanks/Movie/Title/Sleepless in Seattle/relationships",
          "payload": {
            "relationshipsid": "ACTED_IN",
            "properties": {
              "role": "Sam"
            }
          }
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Tom Hanks/Movie/Title/Pulp Fiction/relationships",
          "payload": {
            "relationshipsid": "PRODUCED"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/relationships/:relationshipsid",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPropertiesNameRelationshipsRelationshipsid",
      "description": "get nodes that have relationship with the named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "relationshipsid"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Snippet/snippetID/24/relationships/PRODUCED_BY"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/relationships/HASCAFFINE"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Keanu Reeves/relationships/SCREENPLAY"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/relationships/DIRECTED"
        }
      ]
    },
    {
      "route": "/n4jsvc/nmnodes/:label/:name/:value/relationships/:relationshipsid",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcPropertiesNameRelationshipsRelationshipsid",
      "description": "delete  nodes that have relationship with the named node",
      "paramschema": {
        "type": "object",
        "required": [
          "label",
          "name",
          "value",
          "relationshipsid"
        ],
        "properties": {
          "label": {
            "description": "label for the named node",
            "type": "string"
          },
          "name": {
            "description": "name of the named node",
            "type": "string"
          },
          "value": {
            "description": "value for named node"
          },
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nmnodes/Snippet/snippetID/24/relationships/PRODUCED_BY"
        },
        {
          "param": "/n4jsvc/nmnodes/Product/productName/Chai/relationships/HASCAFFINE"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Keanu Reeves/relationships/SCREENPLAY"
        },
        {
          "param": "/n4jsvc/nmnodes/Person/Name/Quentin Tarantino/relationships/DIRECTED"
        }
      ]
    },
    {
      "route": "/n4jsvc/paths/:lstart/:nstart/:vstart/:lend/:nend/:vend",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPathsNamestartNameend",
      "description": "get shortest path between the named nodes",
      "paramschema": {
        "type": "object",
        "required": [
          "lstart",
          "nstart",
          "vstart",
          "lend",
          "nend",
          "vend"
        ],
        "properties": {
          "lstart": {
            "description": "label for start named node",
            "type": "string"
          },
          "nstart": {
            "description": "name of start named node",
            "type": "string"
          },
          "vstart": {
            "description": "value for start named node"
          },
          "lend": {
            "description": "label for end named node",
            "type": "string"
          },
          "nend": {
            "description": "name of end named node",
            "type": "string"
          },
          "vend": {
            "description": "value for end named node"
          },
          "min": {
            "description": "min value for the length of relationship pattern (hops)",
            "type": "integer",
            "minimum": 0,
            "maximum": 1
          },
          "max": {
            "description": "max value for the length of relationship pattern (hops)",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/paths/Person/personID/1/Topic/topicID/1"
        },
        {
          "param": "/n4jsvc/paths/Person/personID/1/Person/personID/3"
        },
        {
          "param": "/n4jsvc/paths/Product/productName/Chai/Customer/customerID/BLONP"
        },
        {
          "param": "/n4jsvc/paths/Person/Name/Kevin Bacon/Person/Name/Meg Ryan"
        },
        {
          "param": "/n4jsvc/paths/Person/Name/Keanu Reeves/Person/Name/Tom Hanks"
        },
        {
          "param": "/n4jsvc/paths/Person/Name/Keanu Reeves/Person/Name/Meg Ryan?min=1&max=2"
        }
      ]
    },
    {
      "route": "/n4jsvc/labels",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcLabels",
      "description": "get method for route /n4jsvc/labels",
      "examples": [
        {
          "param": "/n4jsvc/labels"
        }
      ]
    },
    {
      "route": "/n4jsvc/labels/:label/nodes",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcLabelsLabelNodes",
      "description": "get method for route /n4jsvc/labels/:label/nodes",
      "paramschema": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "description": "value for label",
            "type": "string"
          },
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/labels/Person/nodes"
        }
      ]
    },
    {
      "route": "/n4jsvc/indexes",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcIndexes",
      "description": "Get all indexes",
      "examples": [
        {
          "param": "/n4jsvc/indexes"
        }
      ]
    },
    {
      "route": "/n4jsvc/indexes",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcIndexes",
      "description": "create index for a specific node label with either a simple property or multiple properties",
      "bodyschema": {
        "type": "object",
        "required": [
          "label",
          "properties"
        ],
        "properties": {
          "label": {
            "description": "label for node1 e.g. Artist",
            "type": "string"
          },
          "properties": {
            "description": "array of properties making up the index. If multiple properties are present, it's a complex index",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/indexes",
          "payload": {
            "label": "Product",
            "properties": [
              "productID"
            ]
          }
        },
        {
          "param": "/n4jsvc/indexes",
          "payload": {
            "label": "Category",
            "properties": [
              "categoryID"
            ]
          }
        },
        {
          "param": "/n4jsvc/indexes",
          "payload": {
            "label": "Supplier",
            "properties": [
              "supplierID"
            ]
          }
        },
        {
          "param": "/n4jsvc/indexes",
          "payload": {
            "label": "Customer",
            "properties": [
              "customerID"
            ]
          }
        },
        {
          "param": "/n4jsvc/indexes",
          "payload": {
            "label": "Order",
            "properties": [
              "orderID"
            ]
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/indexes",
      "type": "delete",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcIndexes",
      "description": "Delete all indexes",
      "examples": [
        {
          "param": "/n4jsvc/indexes"
        }
      ]
    },
    {
      "route": "/n4jsvc/relationshiptypes",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcRelationshipTypes",
      "description": "get method for route /n4jsvc/relationships",
      "examples": [
        {
          "param": "/n4jsvc/relationshiptypes"
        }
      ]
    },
    {
      "route": "/n4jsvc/relationships",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcRelationships",
      "description": "get method for route /n4jsvc/relationships",
      "paramschema": {
        "type": "object",
        "properties": {
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/relationships"
        },
        {
          "param": "/n4jsvc/relationships?limit=3&skip=2"
        }
      ]
    },
    {
      "route": "/n4jsvc/relationships",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcRelationships",
      "description": "Form edge with relationship between two node types. Note they two properties property1 and property2 are like primary and foreign keys and need to match. For setting relationship between two specific nodes use the route namednodestart/namednodeend/relationships",
      "paramschema": {
        "type": "object",
        "properties": {
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "oneOf": [
          {
            "required": [
              "label1",
              "property1",
              "label2",
              "property2",
              "relationshipsid"
            ]
          },
          {
            "required": [
              "label1",
              "propertyarr1",
              "label2",
              "propertyarr2",
              "relationshipsid"
            ]
          }
        ],
        "properties": {
          "label1": {
            "description": "label for node1 e.g. Artist",
            "type": "string"
          },
          "propertyarr1": {
            "description": "property or name  for node1 e.g. bandid",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "property1": {
            "description": "property or name  for node1 e.g. bandid",
            "type": "string"
          },
          "label2": {
            "description": "label for node2 e.g. Band",
            "type": "string"
          },
          "propertyarr2": {
            "description": "property or name  for node1 e.g. bandid",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "chunk": {
            "type": "integer",
            "description": "chunk of relationship to periodic commit to speed up the process.",
            "minimum": 100
          },
          "property2": {
            "description": "property or name  for node1 e.g. bandid",
            "type": "string"
          },
          "relationshipsid": {
            "description": "value for relationshipsid e.g. COMPOSED",
            "type": "string"
          },
          "properties": {
            "description": "optional properties of the relationships specified as name value pairs. These are global relationships not specific to a node unless a valid expression is added like count of nodes connected to this.",
            "type": "object",
            "patternProperties": {
              "^[A-Za-z][A-Za-z0-9-_]*$": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/relationships?skip=0&limit=1",
          "payload": {
            "label1": "Product",
            "property1": "categoryID",
            "label2": "Category",
            "property2": "categoryID",
            "relationshipsid": "PART_OF"
          }
        },
        {
          "param": "/n4jsvc/relationships",
          "payload": {
            "label1": "Product",
            "property1": "supplierID",
            "label2": "Supplier",
            "property2": "supplierID",
            "relationshipsid": "SUPPLIES"
          }
        },
        {
          "param": "/n4jsvc/relationships",
          "payload": {
            "label1": "Customer",
            "property1": "customerID",
            "label2": "Order",
            "property2": "customerID",
            "relationshipsid": "PURCHASED"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/relationshipsjoin",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcRelationshipsJoin",
      "description": "Form edge with relationship between two node types with many to many relationship. The resulting join properties will be added to the relationship",
      "bodyschema": {
        "type": "object",
        "required": [
          "label1",
          "property1",
          "label2",
          "property2",
          "labelm2m",
          "property1m2m",
          "property2m2m",
          "relationshipsid"
        ],
        "properties": {
          "label1": {
            "description": "label for node1 e.g. Artist",
            "type": "string"
          },
          "property1": {
            "description": "property or name for node1 e.g. bandid",
            "type": "string"
          },
          "label2": {
            "description": "label for node2 e.g. Band",
            "type": "string"
          },
          "property2": {
            "description": "property or name for node1 e.g. bandid",
            "type": "string"
          },
          "labelm2m": {
            "description": "label for node2 e.g. Band",
            "type": "string"
          },
          "property1m2m": {
            "description": "property or name to join m2m node with node1",
            "type": "string"
          },
          "property2m2m": {
            "description": "property or name  to join m2m node with node2",
            "type": "string"
          },
          "relationshipsid": {
            "description": "value for relationshipsid e.g. ORDERS",
            "type": "string"
          },
          "properties": {
            "description": "optional properties of the relationships specified as name value pairs. These are global relationships not specific to a node unless a valid expression is added like count of nodes connected to this.",
            "type": "object",
            "patternProperties": {
              "^[A-Za-z][A-Za-z0-9-_]*$": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/relationshipsjoin",
          "payload": {
            "label1": "Product",
            "property1": "productID",
            "label2": "Order",
            "property2": "orderID",
            "labelm2m": "OrderDetails",
            "property1m2m": "productID",
            "property2m2m": "orderID",
            "relationshipsid": "ORDERS"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/relationships/:relationshipsid/nodes",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcRelationshipsRelationshipsidNodes",
      "description": "get method for route /n4jsvc/relationships/:relationshipsid/nodes",
      "paramschema": {
        "type": "object",
        "required": [
          "relationshipsid"
        ],
        "properties": {
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          },
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/relationships/ACTED_IN/nodes"
        }
      ]
    },
    {
      "route": "/n4jsvc/relationships/:lstart/:lend",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcRelationshipsLStartLEnd",
      "description": "get relationships between nodes with labels lstart and lend",
      "paramschema": {
        "type": "object",
        "required": [
          "lstart",
          "lend"
        ],
        "properties": {
          "lstart": {
            "description": "value for relationshipsid",
            "type": "string"
          },
          "lend": {
            "description": "value for relationshipsid",
            "type": "string"
          },
          "limit": {
            "description": "query parameter you can give limit=3 or 4 or whatever number",
            "type": "integer",
            "minimum": 1
          },
          "skip": {
            "description": "query parameter together with limit this can help data from the middle",
            "type": "integer",
            "minimum": 0
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/relationships/Person/Movie"
        },
        {
          "param": "/n4jsvc/relationships/Person/Movie?skip=1&limit=2"
        }
      ]
    },
    {
      "route": "/n4jsvc/schema",
      "type": "get",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcSchema",
      "description": "get schema",
      "examples": [
        {
          "param": "/n4jsvc/schema"
        }
      ]
    },
    {
      "route": "/n4jsvc/query",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcQuery",
      "description": "JSON query into the graph database",
      "bodyschema": {
        "description": "The cypher query. No check is performed. This is directly passed to Neo4J",
        "type": "object",
        "required": [
          "return",
          "matches"
        ],
        "properties": {
          "return": {
            "type": "string",
            "description": "comma separated list of node and relationship variables. You can also return properties with the .notation and also call the aggregator functions. These variables are defimed in match below. These can include aggregating functions like avg() - Numeric valuesavg() - Durations,collect(),count(),max(),min(),percentileCont(),percentileDisc(),stDev(),stDevP(),sum() - Numeric values,sum() - Durations"
          },
          "distinct": {
            "description": "adds distinct to the return statement in cypher",
            "type": "boolean"
          },
          "matches": {
            "description": "nested matchwhere the order indicates the depth of the query.",
            "type": "array",
            "items": {
              "type": "object",
              "description": "pairs of 'match' and 'where' clauses which result in nested matches similar to nested queries in sql",
              "required": [
                "match"
              ],
              "properties": {
                "match": {
                  "type": "array",
                  "description": "array of labels and relationships to match or select from",
                  "items": {
                    "type": "object",
                    "description": "objects with name, label",
                    "required": [
                      "name",
                      "type"
                    ],
                    "properties": {
                      "name": {
                        "type": "string",
                        "description": "name of the variable for node to selected. Can be refered to in select above"
                      },
                      "label": {
                        "type": "string",
                        "description": "label this node refers to"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "node",
                          "relationship"
                        ],
                        "description": "type of the variable either node or relationship"
                      }
                    }
                  }
                },
                "where": {
                  "description": "where condition caluse can be expression that involves varous variables and properties",
                  "type": "string"
                }
              }
            },
            "minItems": 1
          },
          "orderby": {
            "description": "order by it can be varible.property expression similar to where clause",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/query",
          "payload": {
            "return": "p,ps,s,r,t,c",
            "matches": [
              {
                "match": [
                  {
                    "name": "p",
                    "type": "node",
                    "label": "Person"
                  },
                  {
                    "name": "ps",
                    "type": "relationship",
                    "label": "PRODUCED_BY"
                  },
                  {
                    "name": "s",
                    "type": "node",
                    "label": "Snippet"
                  },
                  {
                    "name": "r",
                    "type": "relationship"
                  },
                  {
                    "name": "t",
                    "type": "node",
                    "label": "Topic"
                  },
                  {
                    "name": "c",
                    "type": "node",
                    "label": "Company"
                  }
                ],
                "where": "ps.seq < 5 and r.weight > 0.5"
              }
            ],
            "orderby": "r.weight"
          }
        },
        {
          "param": "/n4jsvc/query",
          "payload": {
            "return": "p,r,m",
            "matches": [
              {
                "match": [
                  {
                    "name": "p",
                    "type": "node",
                    "label": "Person"
                  },
                  {
                    "name": "r",
                    "type": "relationship",
                    "label": "ACTED_IN"
                  },
                  {
                    "name": "m",
                    "type": "node",
                    "label": "Movie"
                  }
                ],
                "where": "m.Title='Sleepless in Seattle'"
              }
            ]
          }
        },
        {
          "param": "/n4jsvc/query",
          "payload": {
            "return": "p,r,m",
            "matches": [
              {
                "match": [
                  {
                    "name": "p",
                    "type": "node",
                    "label": "Person"
                  },
                  {
                    "name": "r",
                    "type": "relationship"
                  },
                  {
                    "name": "m",
                    "type": "node",
                    "label": "Movie"
                  }
                ],
                "where": "not (p)-[r:ACTED_IN]-(m)"
              }
            ]
          }
        }

      ]
    },
    {
      "route": "/n4jsvc/cypher",
      "type": "post",
      "configured": true,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcCypher",
      "description": "Execute generic cypher statement",
      "bodyschema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "description": "The cypher query. No check is performed. This is directly passed to Neo4J",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/cypher",
          "payload": {
            "query": "MATCH (cust:Customer)-[:PURCHASED]->(:Order)<-[o:ORDERS]-(p:Product),(p)-[:PART_OF]->(c:Category {categoryName:\"Produce\"}) RETURN DISTINCT cust.contactName as CustomerName, o.quantity,c.categoryName,p.productName AS TotalProductsPurchased"
          }
        },
        {
          "param": "/n4jsvc/cypher",
          "payload": {
            "query": "MATCH(n) return (n)"
          }
        },
        {
          "param": "/n4jsvc/cypher",
          "payload": {
            "query": "MATCH ()-[r]->() RETURN r"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesid",
      "description": "get method for route /n4jsvc/nodes/:nodesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid",
      "type": "put",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "putN4jsvcNodesNodesid",
      "description": "put method for route /n4jsvc/nodes/:nodesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid",
      "type": "delete",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcNodesNodesid",
      "description": "delete method for route /n4jsvc/nodes/:nodesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/properties",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidProperties",
      "description": "get method for route /n4jsvc/nodes/:nodesid/properties",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/properties"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/properties",
      "type": "post",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcNodesNodesidProperties",
      "description": "post method for route /n4jsvc/nodes/:nodesid/properties",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "name",
          "value"
        ],
        "properties": {
          "name": {
            "description": "name of property",
            "type": "string"
          },
          "value": {
            "description": "value for property"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/properties",
          "payload": {
            "name": "Age",
            "value": "35"
          }
        },
        {
          "param": "/n4jsvc/nodes/1/properties",
          "payload": {
            "name": "gender",
            "value": "M"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidPropertiesPropertiesid",
      "description": "get method for route /n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "propertiesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "propertiesid": {
            "description": "value for propertiesid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/properties/age"
        },
        {
          "param": "/n4jsvc/nodes/2/properties/age"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "type": "put",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "putN4jsvcNodesNodesidPropertiesPropertiesid",
      "description": "put method for route /n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "propertiesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "propertiesid": {
            "description": "value for propertiesid",
            "type": "string"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "value"
        ],
        "properties": {
          "value": {
            "description": "value for value",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/properties/age",
          "payload": {
            "value": "35"
          }
        },
        {
          "param": "/n4jsvc/nodes/2/properties/age",
          "payload": {
            "value": "45"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "type": "delete",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcNodesNodesidPropertiesPropertiesid",
      "description": "delete method for route /n4jsvc/nodes/:nodesid/properties/:propertiesid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "propertiesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "propertiesid": {
            "description": "value for propertiesid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/properties/age"
        },
        {
          "param": "/n4jsvc/nodes/2/properties/age"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/labels",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidLabels",
      "description": "get method for route /n4jsvc/nodes/:nodesid/labels",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodesid/200/labels"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/labels",
      "type": "post",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcNodesNodesidLabels",
      "description": "post method for route /n4jsvc/nodes/:nodesid/labels",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "label"
        ],
        "properties": {
          "label": {
            "description": "value for label",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodeid/200/labels",
          "payload": {
            "label": "Person"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/labels/:label",
      "type": "delete",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcNodesNodesidLabelsLabel",
      "description": "delete method for route /n4jsvc/nodes/:nodesid/labels/:label",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "label"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "label": {
            "description": "value for label",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodeid/200/labels/RANDOM"
        },
        {
          "param": "/n4jsvc/nodeid/200/labels/PERSON"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/relationships",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidRelationships",
      "description": "get method for route /n4jsvc/nodes/:nodesid/relationships",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/relationships"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesidStart/:nodesidEnd/relationships",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidstartNodesidendRelationships",
      "description": "get method for route /n4jsvc/nodes/:nodesidStart/:nodesidEnd/relationships",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesidStart",
          "nodesidEnd"
        ],
        "properties": {
          "nodesidStart": {
            "description": "value for nodesidStart",
            "type": "integer"
          },
          "nodesidEnd": {
            "description": "value for nodesidEnd",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/0/relationships"
        },
        {
          "param": "/n4jsvc/nodes/1/0/relationships"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesidStart/:nodesidEnd/relationships",
      "type": "post",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "postN4jsvcNodesNodesidstartNodesidendRelationships",
      "description": "post method for route /n4jsvc/nodes/:nodesidStart/:nodesidEnd/relationships",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesidStart",
          "nodesidEnd"
        ],
        "properties": {
          "nodesidStart": {
            "description": "value for nodesidStart",
            "type": "integer"
          },
          "nodesidEnd": {
            "description": "value for nodesidEnd",
            "type": "integer"
          }
        }
      },
      "bodyschema": {
        "type": "object",
        "required": [
          "relationshipsid"
        ],
        "properties": {
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          },
          "properties": {
            "description": "optional properties of the relationships specified as name value pairs. These are global relationships not specific to a node unless a valid expression is added like count of nodes connected to this.",
            "type": "object",
            "patternProperties": {
              "^[A-Za-z][A-Za-z0-9-_]*$": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              }
            }
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/0/relationships",
          "payload": {
            "relationshipsid": "SCREENPLAY"
          }
        },
        {
          "param": "/n4jsvc/nodes/1/0/relationships",
          "payload": {
            "relationshipsid": "STORY"
          }
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/relationships/:relationshipsid",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcNodesNodesidRelationshipsRelationshipsid",
      "description": "get method for route /n4jsvc/nodes/:nodesid/relationships/:relationshipsid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "relationshipsid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/relationships/SCREENPLAY"
        },
        {
          "param": "/n4jsvc/nodes/2/relationships/ACTED_IN"
        }
      ]
    },
    {
      "route": "/n4jsvc/nodes/:nodesid/relationships/:relationshipsid",
      "type": "delete",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "deleteN4jsvcNodesNodesidRelationshipsRelationshipsid",
      "description": "delete method for route /n4jsvc/nodes/:nodesid/relationships/:relationshipsid",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesid",
          "relationshipsid"
        ],
        "properties": {
          "nodesid": {
            "description": "value for nodesid",
            "type": "integer"
          },
          "relationshipsid": {
            "description": "value for relationshipsid",
            "type": "string"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/nodes/1/relationships/SCREENPLAY"
        },
        {
          "param": "/n4jsvc/nodes/2/relationships/ACTED_IN"
        }
      ]
    },
    {
      "route": "/n4jsvc/pathsids/:nodesidstart/:nodesidend",
      "type": "get",
      "configured": false,
      "routeclass": "n4jsvc.js",
      "routefunction": "getN4jsvcPathsidsNodesidstartNodesidend",
      "description": "get method for route /n4jsvc/pathsids/:nodesidstart/:nodesidend",
      "paramschema": {
        "type": "object",
        "required": [
          "nodesidstart",
          "nodesidend"
        ],
        "properties": {
          "nodesidstart": {
            "description": "value for nodesidstart",
            "type": "integer"
          },
          "nodesidend": {
            "description": "value for nodesidend",
            "type": "integer"
          }
        }
      },
      "examples": [
        {
          "param": "/n4jsvc/pathsids/1/3"
        },
        {
          "param": "/n4jsvc/pathsids/1/5"
        }
      ]
    }
  ]
}