Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
titleNote the versionStamp value matches the file response
$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "type=DOMESTIC&versionStamp=20150304024814280&webUserName=me%40letmein.com&flightRules=IFR&aircraftIdentifier=MESSN&departure=HOU&destination=MIA&departureInstant=2015-03-04T14:48:00.0&flightDuration=PT1H20M&route=&altDestination1=&altDestination2=&aircraftType=L18&numberOfAircraft=&aircraftEquipment=X&remarks=&speedKnots=150&altitudeFL=45&fuelOnBoard=PT21H0M&pilotData=JOE%20COOL&peopleOnBoard=2&aircraftColor=B" "http://www.elabs.testafss.net/Website2/rest/FP/file298351728_447141_1053/amend" -v

{"versionStamp":"20150304024817490","returnCodedMessage":[],"returnMessage":[],"returnStatus":true}

...

Code Block
languagebash
titleNote the versionStamp value matches the file response
$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "&actualDepartureInstant=2015-03-04T15:03:00.0&versionStamp=20150304024817490&includeCodedMessages=true""http://www.elabs.testafss.net/Website2/rest/FP/298351728_447141_1053/activate" -v

{"versionStamp":"20150304030332170","returnCodedMessage":[],"returnMessage":[],"returnStatus":true}

Cancelling/Closing

There are two actions to disable a flight plan that are very similar an example of a close web service call is below.

Code Block
languagebash
titleNote the versionStamp value matches the file response

 

...

$ /usr/bin/curl -k -A "Mozilla/5.0" -i -c cookies/cookies. --header "Authorization: Basic bWVAbGV0bWVpbi5jb206TXlQYXNzdzByZCE=" --data "includeCodedMessages=true" "http://www.elabs.testafss.net/Website2/rest/FP/298351728_447141_1053/close" -v

{"returnCodedMessage":[],"returnMessage":[],"returnStatus":true}

Cancelling a flight plan is done before the flight plan is activated.  Closing a flight plan is done after the flight plan is activated.  An additional parameter is required if the flightplan is overdue based on the current ETA (closeDestinationInfo)