Changes

285 bytes added ,  10:30, 3 July 2020
no edit summary
Line 12: Line 12:  
https://api.canada.ca/en/homepage
 
https://api.canada.ca/en/homepage
   −
== REST API (Search) ==
+
== REST API ==
 +
 
 +
=== REST Discovery | Search ===
 
Default result format is human-readable HTML. Appending <code>&format=json'</code> or <code>'=xml'</code> to the URL behaves as expected.
 
Default result format is human-readable HTML. Appending <code>&format=json'</code> or <code>'=xml'</code> to the URL behaves as expected.
 
Each collection has a unique set of search fields here:
 
Each collection has a unique set of search fields here:
Line 34: Line 36:     
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=ROLL.ROLL_NUMBER='A128' AND PHOTO.PHOTO_NUMBER='0032</pre>
 
<pre style="background-color:#EEFFCC; border-color:#AACC99">https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/search?collection=NAPL&query=ROLL.ROLL_NUMBER='A128' AND PHOTO.PHOTO_NUMBER='0032</pre>
 +
 +
=== REST ORDER ===
 +
 +
URL: https://www.eodms-sgdot.nrcan-rncan.gc.ca/wes/rapi/order
 +
 +
POST XML:
 +
 +
<pre>
 +
{
 +
    "destinations": [],
 +
    "items": [
 +
        {
 +
            "collectionId": "RCMImageProducts",
 +
            "recordId": "7189214"
 +
        }
 +
    ]
 +
}
 +
</pre>
    
== OpenSearch API (for RADARSAT-1 and NAPL) ==
 
== OpenSearch API (for RADARSAT-1 and NAPL) ==