POST api/Service/UpdateAirportImportData
Upate Airport Import Data, if action = apporved it will Add rows into Airports table, if denied will mark as status id = 0
Request Information
URI Parameters
None.
Body Parameters
AirportImportViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| AirportCodes | string |
None. |
|
| ActionId | integer |
None. |
|
| UserName | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"AirportCodes": "sample string 1",
"ActionId": 2,
"UserName": "sample string 3"
}
text/html
Sample:
{"AirportCodes":"sample string 1","ActionId":2,"UserName":"sample string 3"}
application/xml, text/xml
Sample:
<AirportImportViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Faa.wildlife.ResfulAPIService.Models"> <ActionId>2</ActionId> <AirportCodes>sample string 1</AirportCodes> <UserName>sample string 3</UserName> </AirportImportViewModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
Return a returnViewModel with Success (True / False), If False ErrorMessage, else Result as Object with StrikeReportViewModel
ReturnViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Success |
Success will return True / False based on Request Status |
boolean |
None. |
| Result |
Result will be Object based on Request. |
Object |
None. |
| Total |
Returns total number of records for list. For example: Airports, Operators Total count. |
integer |
None. |
| ErrorMessage |
Returns error meesage if Success is False. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Result": {},
"Total": 3,
"ErrorMessage": "sample string 4"
}
text/html
Sample:
{"Success":true,"Result":{},"Total":3,"ErrorMessage":"sample string 4"}
application/xml, text/xml
Sample:
<ReturnViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Faa.wildlife.ResfulAPIService.Models"> <ErrorMessage>sample string 4</ErrorMessage> <Result /> <Success>true</Success> <Total>3</Total> </ReturnViewModel>