POST api/lizgrund/validate
Request Information
URI Parameters
None.
Body Parameters
LizGrundValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | LizGrund |
None. |
|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| Nummer | integer |
Required |
|
| Typ | integer |
Required |
|
| Sichtbar | boolean |
Required |
|
| Bezeichnung | string |
None. |
|
| Beschreibung | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"RowGuid": "6447592a-6221-4b71-90db-a35fe92a2e3d",
"Nummer": 3,
"Typ": 4,
"Sichtbar": true,
"Bezeichnung": "sample string 6",
"Beschreibung": "sample string 7"
},
"Id": 2,
"RowGuid": "63befefd-c184-43a4-a9ee-8e7b396b4f63",
"Nummer": 4,
"Typ": 5,
"Sichtbar": true,
"Bezeichnung": "sample string 7",
"Beschreibung": "sample string 8"
}
application/xml, text/xml
Sample:
<LizGrundValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Liz.Models">
<Beschreibung>sample string 8</Beschreibung>
<Bezeichnung>sample string 7</Bezeichnung>
<Id>2</Id>
<Nummer>4</Nummer>
<RowGuid>63befefd-c184-43a4-a9ee-8e7b396b4f63</RowGuid>
<Sichtbar>true</Sichtbar>
<Typ>5</Typ>
<Reason>1</Reason>
<Rec>
<Beschreibung>sample string 7</Beschreibung>
<Bezeichnung>sample string 6</Bezeichnung>
<Id>1</Id>
<Nummer>3</Nummer>
<RowGuid>6447592a-6221-4b71-90db-a35fe92a2e3d</RowGuid>
<Sichtbar>true</Sichtbar>
<Typ>4</Typ>
</Rec>
</LizGrundValidate>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ValidationResult| Name | Description | Type | Additional information |
|---|---|---|---|
| ErrorMsg | string |
None. |
|
| HintMsg | string |
None. |
|
| ErrorFieldNames | Collection of string |
None. |
|
| FieldName | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"ErrorMsg": "sample string 1",
"HintMsg": "sample string 2",
"ErrorFieldNames": [
"sample string 1",
"sample string 2"
],
"FieldName": "sample string 3"
}
application/xml, text/xml
Sample:
<ValidationResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
<ErrorFieldNames xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</ErrorFieldNames>
<ErrorMsg>sample string 1</ErrorMsg>
<FieldName>sample string 3</FieldName>
<HintMsg>sample string 2</HintMsg>
</ValidationResult>