POST api/Reports?district={district}&risk={risk}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
district | string |
Required |
|
risk | string |
Required |
Body Parameters
Collection of InspectionModelRptName | Description | Type | Additional information |
---|---|---|---|
SerialNo | integer |
None. |
|
RegNo | string |
None. |
|
Id | integer |
None. |
|
NameOfUnit | string |
None. |
|
Address | string |
None. |
|
DistrictName | string |
None. |
|
RiskLevel | string |
None. |
|
RatingDate | string |
None. |
|
TotalInspections | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "SerialNo": 1, "RegNo": "sample string 2", "Id": 3, "NameOfUnit": "sample string 4", "Address": "sample string 5", "DistrictName": "sample string 6", "RiskLevel": "sample string 7", "RatingDate": "sample string 8", "TotalInspections": 9 }, { "SerialNo": 1, "RegNo": "sample string 2", "Id": 3, "NameOfUnit": "sample string 4", "Address": "sample string 5", "DistrictName": "sample string 6", "RiskLevel": "sample string 7", "RatingDate": "sample string 8", "TotalInspections": 9 } ]
application/xml, text/xml
Sample:
<ArrayOfInspectionModelRpt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FactoryInspection.API.Models.Reports.Inspection"> <InspectionModelRpt> <Address>sample string 5</Address> <DistrictName>sample string 6</DistrictName> <Id>3</Id> <NameOfUnit>sample string 4</NameOfUnit> <RatingDate>sample string 8</RatingDate> <RegNo>sample string 2</RegNo> <RiskLevel>sample string 7</RiskLevel> <SerialNo>1</SerialNo> <TotalInspections>9</TotalInspections> </InspectionModelRpt> <InspectionModelRpt> <Address>sample string 5</Address> <DistrictName>sample string 6</DistrictName> <Id>3</Id> <NameOfUnit>sample string 4</NameOfUnit> <RatingDate>sample string 8</RatingDate> <RegNo>sample string 2</RegNo> <RiskLevel>sample string 7</RiskLevel> <SerialNo>1</SerialNo> <TotalInspections>9</TotalInspections> </InspectionModelRpt> </ArrayOfInspectionModelRpt>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Collection of stringResponse Formats
application/json, text/json
Sample:
[ "sample string 1", "sample string 2" ]
application/xml, text/xml
Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <string>sample string 1</string> <string>sample string 2</string> </ArrayOfstring>