OperationThis document describes how to operate the Transport Service software contained in the transport-registry package. The Transport Service software is a web application for retrieving product files from the the Product Servers that are located at the various Discipline Nodes. The following topics can be found in this section: InterfaceThe Transport Service 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 Service:
The examples below use http://localhost:8080 as the default base end point for the service. Product RetrievalThe Transport Service web application provides functionality for querying the Registry Service for a product or products and retrieving the associated files. The service can be queried using 3 possible methods for encoding the HTTP request parameters: DIS-Style syntax, XML query expressions, or simple HTTP (name, value) pairs. The following table summarizes the parameters available:
When using DIS-Style format, the identifier and package parameters must be encoded as part of the "q" value parameter:
The following is an example query using DIS-Style query syntax with the q parameter: % curl -X GET -o package.zip -v \ http://localhost:8080/transport-registry/prod?q=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. The following is an example query in DIS-Style syntax that will return a TAR/GZIP package: % curl -X GET -o package.tar.gz -v \ http://localhost:8080/transport-registry/prod?q=identifier+EQ+<LID|LIDVID>+AND+package+EQ+TGZ Alternatively, the product identifier and desired packaging can be specified using standard HTTP parameter encoding. The general URL form is: http://localhost:8080/transport-registry/prod?identifier=<LID|LIDVID>&package=<TGZ|ZIP> For example, the following URLs specify the same logical request for retrieving a PDS product: http://localhost:8080/transport-registry/prod?q=identifier+EQ+\ urn:nasa:pds:phx_lidar:reduced:LS075RLS_00902835894_1885M1+AND+package+EQ+TGZ http://localhost:8080/transport-registry/prod?identifier=\ urn:nasa:pds:phx_lidar:reduced:LS075RLS_00902835894_1885M1&package=TGZ
|