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

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

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