POST api/HGInspections/ApproveInspection
It is used to approve the inspection. Need to send value to orderid property/field/key. Send "false" to IsEdit key
Request Information
URI Parameters
None.
Body Parameters
HGEditInspectionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| OrderID |
It represents OrderID of a inspection. |
integer |
None. |
| IsEdit |
It represents a flag whether to edit a inspection details or not. |
boolean |
None. |
Request Formats
application/json
Sample:
{
"IsEdit": true,
"OrderID": 1
}
application/xml, text/xml
Sample:
<HGEditInspectionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeguardApp.Controllers.Inspection"> <IsEdit>true</IsEdit> <OrderID>1</OrderID> </HGEditInspectionModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
It is used to approve the inspection. Need to send value to orderid property/field/key. Send "false" to IsEdit key
InspectionStatusModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Status |
It represents the status of current API call. status can be either "success" or "failed" |
string |
None. |
| Message |
It represents the some description about the API response. |
string |
None. |
| ReportGenerationStatus |
It represents the Report Generation Status |
integer |
None. |
| StatusID |
It represents the status of inspection |
integer |
None. |
Response Formats
application/json
Sample:
{
"StatusID": 1,
"ReportGenerationStatus": 1,
"Message": "sample string 2",
"Status": "sample string 1"
}
application/xml, text/xml
Sample:
<InspectionStatusModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HomeguardApp.Models"> <Message>sample string 2</Message> <ReportGenerationStatus>1</ReportGenerationStatus> <Status>sample string 1</Status> <StatusID>1</StatusID> </InspectionStatusModel>