POST api/SurfaceRunoffResult

Request Information

URI Parameters

None.

Body Parameters

SurfaceRunoff_Input
NameDescriptionTypeAdditional information
Number_Of_Events

integer

None.

Peak_Intensity

integer

None.

Rainfall

Collection of Rainfall

None.

DistrictName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

TalukName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

SessionId

string

None.

VillageName

string

Matching regular expression pattern: ^[a-zA-Z() -.\s]{2,}$

WatershedName

string

None.

SurveyNo

string

Matching regular expression pattern: ^[a-zA-Z0-9()/\s]*$

RunoffMethod

string

None.

VegitationCover

string

Matching regular expression pattern: ([0-9]{2}-([0-9]{2})%)

Bund

string

Matching regular expression pattern: ([0-9]+)$

Autoflag

integer

None.

CurrentDate

string

Matching regular expression pattern: ^([0]?[0-9]|[12][0-9]|[3][01])[./-]([0]?[1-9]|[1][0-2])[./-]([0-9]{4}|[0-9]{2})$

TimeInterval

string

None.

RainfallDate

string

None.

input_value

string

Matching regular expression pattern: ([0-9]+)$

Infiltration_Rate

decimal number

None.

Slope

string

None.

Texture

string

None.

ID

integer

None.

h_value

string

Matching regular expression pattern: ([0-9]+)$

FormName

string

None.

CadastralFid

string

None.

interval

string

Matching regular expression pattern: ([0-9])$

WatershedBoundaryValue

string

Matching regular expression pattern: ^[a-zA-Z0-9()\s]{2,}$

WatershedBoundaryType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Number_Of_Events": 1,
  "Peak_Intensity": 2,
  "Rainfall": [
    {
      "Number_Of_Events": 1,
      "Peak_Intensity": 2,
      "TRGCode": 3,
      "Rainfall_Date": "2025-05-04T15:18:24.9013113+05:30",
      "SessionId": "sample string 5"
    },
    {
      "Number_Of_Events": 1,
      "Peak_Intensity": 2,
      "TRGCode": 3,
      "Rainfall_Date": "2025-05-04T15:18:24.9013113+05:30",
      "SessionId": "sample string 5"
    }
  ],
  "DistrictName": "sample string 3",
  "TalukName": "sample string 4",
  "SessionId": "sample string 5",
  "VillageName": "sample string 6",
  "WatershedName": "sample string 7",
  "SurveyNo": "sample string 8",
  "RunoffMethod": "sample string 9",
  "VegitationCover": "sample string 10",
  "Bund": "sample string 11",
  "Autoflag": 12,
  "CurrentDate": "sample string 13",
  "TimeInterval": "sample string 14",
  "RainfallDate": "sample string 15",
  "input_value": "sample string 16",
  "Infiltration_Rate": 1.1,
  "Slope": "sample string 17",
  "Texture": "sample string 18",
  "ID": 19,
  "h_value": "sample string 20",
  "FormName": "sample string 21",
  "CadastralFid": "sample string 22",
  "interval": "sample string 23",
  "WatershedBoundaryValue": "sample string 24",
  "WatershedBoundaryType": "sample string 25"
}

application/xml, text/xml

Sample:
<SurfaceRunoff_Input xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WDD_Models">
  <Autoflag>12</Autoflag>
  <Bund>sample string 11</Bund>
  <CadastralFid>sample string 22</CadastralFid>
  <CurrentDate>sample string 13</CurrentDate>
  <DistrictName>sample string 3</DistrictName>
  <FormName>sample string 21</FormName>
  <ID>19</ID>
  <Infiltration_Rate>1.1</Infiltration_Rate>
  <Number_Of_Events>1</Number_Of_Events>
  <Peak_Intensity>2</Peak_Intensity>
  <Rainfall>
    <Rainfall>
      <Number_Of_Events>1</Number_Of_Events>
      <Peak_Intensity>2</Peak_Intensity>
      <Rainfall_Date>2025-05-04T15:18:24.9013113+05:30</Rainfall_Date>
      <SessionId>sample string 5</SessionId>
      <TRGCode>3</TRGCode>
    </Rainfall>
    <Rainfall>
      <Number_Of_Events>1</Number_Of_Events>
      <Peak_Intensity>2</Peak_Intensity>
      <Rainfall_Date>2025-05-04T15:18:24.9013113+05:30</Rainfall_Date>
      <SessionId>sample string 5</SessionId>
      <TRGCode>3</TRGCode>
    </Rainfall>
  </Rainfall>
  <RainfallDate>sample string 15</RainfallDate>
  <RunoffMethod>sample string 9</RunoffMethod>
  <SessionId>sample string 5</SessionId>
  <Slope>sample string 17</Slope>
  <SurveyNo>sample string 8</SurveyNo>
  <TalukName>sample string 4</TalukName>
  <Texture>sample string 18</Texture>
  <TimeInterval>sample string 14</TimeInterval>
  <VegitationCover>sample string 10</VegitationCover>
  <VillageName>sample string 6</VillageName>
  <WatershedBoundaryType>sample string 25</WatershedBoundaryType>
  <WatershedBoundaryValue>sample string 24</WatershedBoundaryValue>
  <WatershedName>sample string 7</WatershedName>
  <h_value>sample string 20</h_value>
  <input_value>sample string 16</input_value>
  <interval>sample string 23</interval>
</SurfaceRunoff_Input>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'SurfaceRunoff_Input'.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />