{"id":595,"date":"2015-09-08T07:35:04","date_gmt":"2015-09-08T07:35:04","guid":{"rendered":"https:\/\/www.autorouter.eu\/wiki\/?page_id=595"},"modified":"2015-09-08T07:35:52","modified_gmt":"2015-09-08T07:35:52","slug":"fpal","status":"publish","type":"page","link":"https:\/\/www.autorouter.aero\/wiki\/api\/fpal\/","title":{"rendered":"FPAL"},"content":{"rendered":"<h1>FPAL related functions<\/h1>\n<p>The Flight Plan Addressing Language (FPAL) is a standard to express rules how a flight plan should be addressed depending on its content. A description of FPAL is available <a title=\"Flight Plan Addressing\" href=\"\/wiki\/flight-plan-addressing\/\">here<\/a>.<\/p>\n<h2>Retrieve FPAL document list<\/h2>\n<p>The current list of FPAL documents can be retrieved by issuing<\/p>\n<pre>HTTP GET to \/api\/flightplan\/fpal<\/pre>\n<p>A JSON structure with the documents will be returned:<\/p>\n<pre>[\r\n   {\r\n      \"id\": \"eb\",\r\n      \"size\": 204,\r\n      \"modified\": 1399187573\r\n   },\r\n   {\r\n      \"id\": \"ed\",\r\n      \"size\": 4867,\r\n      \"modified\": 1399187573\r\n   },\r\n   ...\r\n]<\/pre>\n<p>Each document is identified by its id and the document size in bytes and the timestamp of the last modification (seconds since Unix epoch) is passed.<\/p>\n<h2>Retrieve FPAL document<\/h2>\n<p>A document can be retrieved by its ID using the following call:<\/p>\n<pre>HTTP GET to \/api\/flightplan\/fpal\/&lt;document id&gt;<\/pre>\n<p>The document will be returned with content type text\/plain.<\/p>\n<h2>Retrieve all FPAL documents<\/h2>\n<p>With this call, you can retrieve all FPAL documents at once in one transmission.<\/p>\n<pre>HTTP GET to \/api\/flightplan\/fpal\/all<\/pre>\n<p>At the top of the document, the timestamp of the last modified document is returned:<\/p>\n<pre>#\r\n# FPAL all documents, last modified 1399187573\r\n#<\/pre>\n<p>For each document in the transmission, a header with the document ID and modification date is given:<\/p>\n<pre># Document id: ed, last modified 1399187573<\/pre>\n<h2>\u00a0Validate an FPAL document<\/h2>\n<p>To help you write your own FPAL documents, the API provides a validation method. Send your document in the body of the request to<\/p>\n<pre>HTTP PUT to \/api\/flightplan\/fpal\/validate<\/pre>\n<p>You will then receive an output like this:<\/p>\n<pre>Verifying flight plan addressing file \/tmp\/fpalvalidateASdkje\r\n0 errors, 0 warnings, 16 rules\r\nSummary: 0 errors, 0 warnings, 32 rules<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FPAL related functions The Flight Plan Addressing Language (FPAL) is a standard to express rules how a flight plan should be addressed depending on its content. A description of FPAL is available here. Retrieve FPAL document list The current list of FPAL documents can be retrieved by issuing HTTP GET to \/api\/flightplan\/fpal A JSON structure [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":33,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-595","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/595","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/comments?post=595"}],"version-history":[{"count":2,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/595\/revisions"}],"predecessor-version":[{"id":597,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/595\/revisions\/597"}],"up":[{"embeddable":true,"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/pages\/33"}],"wp:attachment":[{"href":"https:\/\/www.autorouter.aero\/wiki\/wp-json\/wp\/v2\/media?parent=595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}