POST api/sazwettbewerb/validate
Request Information
URI Parameters
None.
Body Parameters
SazWettbewerbValidate| Name | Description | Type | Additional information |
|---|---|---|---|
| Reason | integer |
Required |
|
| Rec | SazWettbewerb |
None. |
|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| GruppeId | integer |
Required |
|
| Bezeichnung | string |
None. |
|
| Jahr | integer |
Required |
|
| AnzahlMin | integer |
Required |
|
| AnzahlMax | integer |
Required |
|
| Geschlossen | boolean |
Required |
Request Formats
application/json, text/json
Sample:
{
"Reason": 1,
"Rec": {
"Id": 1,
"RowGuid": "6c11a493-e452-4252-b28e-644ede199db0",
"GruppeId": 3,
"Bezeichnung": "sample string 4",
"Jahr": 5,
"AnzahlMin": 6,
"AnzahlMax": 7,
"Geschlossen": true
},
"Id": 2,
"RowGuid": "38b67b76-e246-4907-8585-12601dd84e6a",
"GruppeId": 4,
"Bezeichnung": "sample string 5",
"Jahr": 6,
"AnzahlMin": 7,
"AnzahlMax": 8,
"Geschlossen": true
}
application/xml, text/xml
Sample:
<SazWettbewerbValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.IntelliVerband.Saz.Models">
<AnzahlMax>8</AnzahlMax>
<AnzahlMin>7</AnzahlMin>
<Bezeichnung>sample string 5</Bezeichnung>
<Geschlossen>true</Geschlossen>
<GruppeId>4</GruppeId>
<Id>2</Id>
<Jahr>6</Jahr>
<RowGuid>38b67b76-e246-4907-8585-12601dd84e6a</RowGuid>
<Reason>1</Reason>
<Rec>
<AnzahlMax>7</AnzahlMax>
<AnzahlMin>6</AnzahlMin>
<Bezeichnung>sample string 4</Bezeichnung>
<Geschlossen>true</Geschlossen>
<GruppeId>3</GruppeId>
<Id>1</Id>
<Jahr>5</Jahr>
<RowGuid>6c11a493-e452-4252-b28e-644ede199db0</RowGuid>
</Rec>
</SazWettbewerbValidate>
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>