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": "798e8287-5e24-462b-898a-fe966f1ad974",
"Nummer": 3,
"Typ": 4,
"Sichtbar": true,
"Bezeichnung": "sample string 6",
"Beschreibung": "sample string 7"
},
"Id": 2,
"RowGuid": "d108df54-0e66-4fb6-b9fe-bb973520cdcd",
"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>d108df54-0e66-4fb6-b9fe-bb973520cdcd</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>798e8287-5e24-462b-898a-fe966f1ad974</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>