Skip to content

Application data model

Farhad Makiabady edited this page Nov 2, 2018 · 1 revision

Application-data-model

{
  "guid": "eCfJuTamHKj3BkwkEGhlfKuMTV",
  "user": {
    "guid": "eCfJuTamHKj3BkwkEGhlfKuMTV",
    "title": "test",
    "description": "test program",
    "details": "this is a test. \nset test = true on form to see this in results",
    "detailLinks": [
      "google.com"
    ],
    "externalLink": "google.com",
    "created": 1511026108747,
    "tags": [
      "test"
    ]
  },
  "application": [
    {
      "guid": "eCfJuTamHKj3BkwkEGhlfKuMTV",
      "id": "omVcQtLa8R0zNlOL6c3y4ohL7y",
      "conditions": [
        {
          "key": {
            "name": "test",
            "type": "boolean"
          },
          "value": true
        }
      ]
    }
  ]
}

application

The application property is an array of queries each query is composed by conditions these conditions ensure that query property is in the database with the key property. Each of these keys should be found GET http://localhost:9200/master_screener/queries/_mapping?pretty=true. They can be thought of as foreign keys. The type property is used to control the value property, ie make sure that a Boolean key is not compared against a number.