POST api/LVGRules

Handle question from Leyfisveitingagátt by evaluating information and returning status and data.

Request Information

URI Parameters

None.

Body Parameters

RootReglusett
NameDescriptionTypeAdditional information
Adilar

List of persons that have a role in the application

Collection of Adilar

None.

Notandagogn

Information extracted from the application the the ruleset can use.

Collection of Notandagogn

None.

Reglusett

Variable that the ruleset can set to be used in the application. Currently we support String, Int and Date.

Collection of Reglusett

None.

ApplicationType

string

None.

Language

Value for the language, currently we support IS and EN

PortalLanguage

None.

Request Formats

application/json, text/json

Sample:
{
  "language": 1,
  "adilar": [
    {
      "kennitala": "sample string 1",
      "heiti": "sample string 2",
      "heimili": "sample string 3",
      "tegund": 0,
      "hlutverk": "sample string 4"
    },
    {
      "kennitala": "sample string 1",
      "heiti": "sample string 2",
      "heimili": "sample string 3",
      "tegund": 0,
      "hlutverk": "sample string 4"
    }
  ],
  "notandagogn": [
    {
      "flokkur": "sample string 1",
      "heiti": "sample string 2",
      "tegund": "sample string 3",
      "gildi": {}
    },
    {
      "flokkur": "sample string 1",
      "heiti": "sample string 2",
      "tegund": "sample string 3",
      "gildi": {}
    }
  ],
  "reglusett": [
    {
      "flokkur": "sample string 1",
      "heiti": "sample string 2",
      "tegund": "sample string 3",
      "gildi": {}
    },
    {
      "flokkur": "sample string 1",
      "heiti": "sample string 2",
      "tegund": "sample string 3",
      "gildi": {}
    }
  ],
  "applicationType": "sample string 1"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RootReglusett'.

Response Information

Resource Description

result set containing status and values of declared in application.

string

Response Formats

application/json, text/json

Sample:
"sample string 1"