POST api/sazanforderung/validate
Request Information
URI Parameters
None.
Body Parameters
SazAnforderungValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | SazAnforderung |
None. |
|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| UebungId | integer |
Required |
|
| AltersgruppeId | integer |
Required |
|
| Gold | decimal number |
Required |
|
| Silber | decimal number |
Required |
|
| Bronze | decimal number |
Required |
|
| Sichtbar | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"RowGuid": "8b08e790-a7a1-4d5c-9510-ff35471d4519",
"UebungId": 3,
"AltersgruppeId": 4,
"Gold": 5.0,
"Silber": 6.0,
"Bronze": 7.0,
"Sichtbar": true
},
"Id": 2,
"RowGuid": "bc6d4d57-84fb-4ab6-9ac7-23213863a207",
"UebungId": 4,
"AltersgruppeId": 5,
"Gold": 6.0,
"Silber": 7.0,
"Bronze": 8.0,
"Sichtbar": true
}
application/xml, text/xml
Sample:
<SazAnforderungValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Saz.Models">
<AltersgruppeId>5</AltersgruppeId>
<Bronze>8</Bronze>
<Gold>6</Gold>
<Id>2</Id>
<RowGuid>bc6d4d57-84fb-4ab6-9ac7-23213863a207</RowGuid>
<Sichtbar>true</Sichtbar>
<Silber>7</Silber>
<UebungId>4</UebungId>
<Reason>1</Reason>
<Rec>
<AltersgruppeId>4</AltersgruppeId>
<Bronze>7</Bronze>
<Gold>5</Gold>
<Id>1</Id>
<RowGuid>8b08e790-a7a1-4d5c-9510-ff35471d4519</RowGuid>
<Sichtbar>true</Sichtbar>
<Silber>6</Silber>
<UebungId>3</UebungId>
</Rec>
</SazAnforderungValidate>
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>