POST api/krnfunktion/validate
Request Information
URI Parameters
None.
Body Parameters
KrnFunktionValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | KrnFunktion |
None. |
|
| Id | integer |
Required |
|
| OrgTypId | integer |
Required |
|
| Nummer | integer |
Required |
|
| Bezeichnung | string |
None. |
|
| Fachverbandzuordnung | boolean |
Required |
|
| Bereich | integer |
Required |
|
| OberfunktionId | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"OrgTypId": 2,
"Nummer": 3,
"Bezeichnung": "sample string 4",
"Fachverbandzuordnung": true,
"Bereich": 6,
"OberfunktionId": 7,
"RowGuid": "e917ffe7-b41d-4d31-aa01-c36dfc09cc46"
},
"Id": 2,
"OrgTypId": 3,
"Nummer": 4,
"Bezeichnung": "sample string 5",
"Fachverbandzuordnung": true,
"Bereich": 7,
"OberfunktionId": 8,
"RowGuid": "c144bc13-5309-488e-af86-36098e9e7c2f"
}
application/xml, text/xml
Sample:
<KrnFunktionValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Krn.Models">
<Bereich>7</Bereich>
<Bezeichnung>sample string 5</Bezeichnung>
<Fachverbandzuordnung>true</Fachverbandzuordnung>
<Id>2</Id>
<Nummer>4</Nummer>
<OberfunktionId>8</OberfunktionId>
<OrgTypId>3</OrgTypId>
<RowGuid>c144bc13-5309-488e-af86-36098e9e7c2f</RowGuid>
<Reason>1</Reason>
<Rec>
<Bereich>6</Bereich>
<Bezeichnung>sample string 4</Bezeichnung>
<Fachverbandzuordnung>true</Fachverbandzuordnung>
<Id>1</Id>
<Nummer>3</Nummer>
<OberfunktionId>7</OberfunktionId>
<OrgTypId>2</OrgTypId>
<RowGuid>e917ffe7-b41d-4d31-aa01-c36dfc09cc46</RowGuid>
</Rec>
</KrnFunktionValidate>
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>