Nor-Pim is a Product Information Management System written for enterprise cloud environments with user interfaces tailored for PC, Web and Mobile.
FlightSearch REST Member
Method Name: FlightsWithBookingInformation
Parameters:
| Name | Type |
| departureAirportId | System.Guid |
| arrivalAirportId | System.Guid |
| fromDateTime | System.DateTime |
| untilDateTime | System.DateTime |
Properties of ( DTO ( Data transfer object ), OpenApi definition ( NSWag ) & Client side model )
| Name | Type |
| Flight Id | System.Guid |
| Airline Identifier Code | System.String |
| Flight Number | System.String |
| Departure Airport Identifier Code | System.String |
| Departure Airport Name | System.String |
| Arrival Airport Identifier Code | System.String |
| Arrival Airport Name | System.String |
| From Date Time | System.DateTime |
| Until Date Time | System.DateTime |
| Can Book Flag | System.Boolean |
| Can Checkin Flag | System.Boolean |
| In Flight Flag | System.Boolean |
| Flights Booked Count | System.Int32 |
| Last Date Time Type Name | System.String |
| Planned Departure Date Time | System.DateTime |
| Estimated Departure Date Time | System.DateTime |
Service Operations
Notice that Curl, Powershell & Javascript includes Authentication and will work as expected, the Html version will fail since it does not include the correct header and is included just to point out this difference.
curl -X GET https://norportui.azurewebsites.net/api/v1/FlightSearch/FlightsWithBookingInformation -H 'UserRole:User' -H 'accept: text/plain'
Invoke-RestMethod -Uri "https://norportui.azurewebsites.net/api/v1/FlightSearch/FlightsWithBookingInformation" -Method Get -Headers @{ "UserRole" = "User"; "accept" = "text/plain" }
JSON output from REST calls:
Result of GET call will end up here