POST api/appentity/validate

Request Information

URI Parameters

None.

Body Parameters

AppEntityValidate
NameDescriptionTypeAdditional information
Reason

integer

Required

Rec

AppEntity

None.

Id

integer

Required

RowGuid

globally unique identifier

Required

Tablename

string

None.

Displayname

string

None.

ActionNumber

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Reason": 1,
  "Rec": {
    "Id": 1,
    "RowGuid": "bd4c5fdd-a224-4105-bcd9-f992ce1b2589",
    "Tablename": "sample string 3",
    "Displayname": "sample string 4",
    "ActionNumber": 1
  },
  "Id": 2,
  "RowGuid": "84c7d01f-2c19-4b18-a7bb-37934fa6450f",
  "Tablename": "sample string 4",
  "Displayname": "sample string 5",
  "ActionNumber": 1
}

application/xml, text/xml

Sample:
<AppEntityValidate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.App.Models">
  <ActionNumber>1</ActionNumber>
  <Displayname>sample string 5</Displayname>
  <Id>2</Id>
  <RowGuid>84c7d01f-2c19-4b18-a7bb-37934fa6450f</RowGuid>
  <Tablename>sample string 4</Tablename>
  <Reason>1</Reason>
  <Rec>
    <ActionNumber>1</ActionNumber>
    <Displayname>sample string 4</Displayname>
    <Id>1</Id>
    <RowGuid>bd4c5fdd-a224-4105-bcd9-f992ce1b2589</RowGuid>
    <Tablename>sample string 3</Tablename>
  </Rec>
</AppEntityValidate>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ValidationResult
NameDescriptionTypeAdditional 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>