OperationThis document describes how to operate the Transport Proxy software contained in the transport-proxy package. The Transport Proxy software is a web application for retrieving product files from the the Transport Services that are located at the various Discipline Nodes. The following topics can be found in this section: InterfaceThe Transport Proxy provides a REST-based interface accessible via HTTP for interacting with the service. Because the REST-based interface operates over HTTP, there are several options for interacting with the Transport Proxy:
The examples below use http://localhost:8080 as the default base end point for the service. Product QueryThe Transport Proxy web application provides functionality for retrieving directory listings and files from a Transport Service instance. The following table details the parameters available:
The following is an example query: % curl -X GET -o results.out -v \ "http://localhost:8080/prod?object=<object>&keywordQuery=<keywordQuery>" Note: If the above example generates a 302 Moved Temporarily message, an additional "/" is likely required after "/prod" and before the question mark in the example above. The following is an example query for the OFSN implementation of the Transport Service: % curl -X GET -v \ "http://localhost:8080/prod?object=PDS.Img.Product&\ keywordQuery=OFSN+EQ+data/+AND+RT+EQ+DIRLIST1" The above query should return a directory listing. The following is an example query for the Registry Service implementation of the Transport Service: % curl -X GET -o package.zip -v \ http://localhost:8080/prod?object=PDS.Atmos.Transport&\ keywordQuery=identifier+EQ+<LID|LIDVID> Assuming the LID or LIDVID was specified correctly, the above query should return a ZIP package containing the products associated with the specified product. See the respective Operation documents for the Transport Services for more details regarding supported queries.
|