"<!DOCTYPE html>\n<html>\n<head>\n\n  <link rel=\"stylesheet\" type=\"text/css\" href=\"/resifsi/static/resifsi.css\">\n\t<title>Documentation</title>\n\t<meta charset=\"utf-8\">\n</head>\n<body>\n  <div class=\"main\">\n\n  <img src=\"/resifsi/static/image/logoresif.png\">\n\n  <h1> Transaction webservice</h1>\n  <div> \n\n      \t\t<p class=\"intro\">&nbsp;&nbsp;  The transaction webservice  allows to retrieve information about the data integration transactions of Nodes A. There are three detail levels:\n      \t\t<ol>\n      \t\t<li><b>Transaction level</b> : With this level general  transactions informations are requested. </li>\n      \t\t<li><b>File level</b> : With file level, we will have informations about the files of the transaction \"transcationsid\".The transactionid argument is mandatory.</li>\n      \t\t<li><b>Content level</b> : Displays the XML file of the transaction. The transactionid argument is mandatory.</li>\n      \t\t</ol>\n          <br>A query without parameters returns the hundred last transactions.\n          </p>\n    <h3> Overview of request parameters </h3>\n           <p class=\"intro\">The request parameters for service are summarized in table below.</p> \n           <br>\n \t\t  \t<table class=\"table2\">\n \t\t  \t\t<thead>\n \t\t  \t\t\t<tr>\n \t\t  \t\t\t\t<th>Parameter</th>\n \t\t  \t\t\t\t<th>Required</th>\n \t\t  \t\t\t\t<th>Description</th>\n \t\t  \t\t\t\t<th>Values (default)</th>\n \t\t  \t\t\t</tr>\n \t\t  \t\t</thead>\n \t\t  \t\t<tbody>\n \t\t  \t\t\t<tr>\n \t\t  \t\t\t\t<td >starttime</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Transaction limit date at or after the specific start time</td>\n \t\t  \t\t\t\t<td >YYYY-MM-DDTHH:MM:SS (-)</td>\n \t\t  \t\t\t</tr>\n \t\t  \t\t\t<tr>\n \t\t  \t\t\t\t<td >endtime</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Limit  transaction date at or before the specific end time</td>\n \t\t  \t\t\t\t<td >YYYY-MM-DDTHH:MM:SS (-)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >node</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Node name in capital letters</td>\n \t\t  \t\t\t\t<td >OMIV, IPGP, RAP, SISMOB, DASE, RLBP-OCA, RLBP</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >network</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >FDSN network code</td>\n \t\t  \t\t\t\t<td > Network codes list is available<a href=\"http://seismology.resif.fr/#NetworkConsultPlace:\"> here </a></td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >status</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Transaction status</td>\n \t\t  \t\t\t\t<td >(*)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >type</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Transaction type</td>\n \t\t  \t\t\t\t<td >seismic_data_miniseed\n            / seismic_metadata_dataless_seed (*)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >format</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Output format</td>\n \t\t  \t\t\t\t<td >text/json (json)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >transactionid</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Transaction ID</td>\n \t\t  \t\t\t\t<td > (-)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >erroron</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >ID of the test causing the error</td>\n \t\t  \t\t\t\t<td > (-)</td>\n \t\t  \t\t\t</tr>\n\t\t\t\t\t<tr>\n \t\t  \t\t\t\t<td >level</td>\n \t\t  \t\t\t\t<td >NO</td>\n \t\t  \t\t\t\t<td >Detail level</td>\n \t\t  \t\t\t\t<td >transaction/file/content (transaction)</td>\n \t\t  \t\t\t</tr>\n \t\t  \t\t</tbody>\n \t\t  \t</table>\n\n    <h3> HTTP status codes</h3>\n\n    <p class=\"intro\">Table below includes a list of codes status returned by the webservice. These codes should be used by end-users to check if a request was successful.</p>\n        <table class=\"table2\">\n            <thead>\n              <tr>\n                <th>Code</th>\n                <th>Description</th>\n              </tr>\n            </thead>\n            <tbody>\n              <tr>\n                <td>200</td>\n                <td>Successfull request, result follow</td>\n              </tr>\n              <tr>\n                <td>201</td>\n                <td>Request was properly formatted and submitted but no data match the selection</td>\n              </tr>\n              <tr>\n                <td>400</td>\n                <td>Bad request due to improper specification, unrecognized parameter, etc.</td>\n              </tr>\n              <tr>\n                <td>203</td>\n                <td>Request resulted in too much data being returned or the request itself is too large.</td>\n              </tr>\n              <tr>\n                <td>500</td>\n                <td>Internal Server Error.</td>\n              </tr>\n            </tbody>\n          </table>    \n\n  </div>\n<br>\n<h3> Examples</h3>\n<ul>\n  <li>Get all SISMOB transactions  since januray 2018 </li>\n<a href=\"http://ws.resif.fr/resifsi/transaction/1/query?level=transaction&node=SISMOB&starttime=2018-01-01&format=text\">\n            http://ws.resif.fr/resifsi/transaction/1/query?level=transaction&node=SISMOB&starttime=2018-01-01&format=text</a>\n<li> Get XML file of the transcation MWWA7190  </li>\n <a href=\"http://ws.resif.fr/resifsi/transaction/1/query?level=content&transactionid=MWWA7190\">http://ws.resif.fr/resifsi/transaction/1/query?level=content&transactionid=MWWA7190</a>\n<li>  Get the all information about transaction files MWWA7190  </li>\n<a href=\"http://ws.resif.fr/resifsi/transaction/1/query?level=file&transactionid=MWWA7190&format=text\">\n    http://ws.resif.fr/resifsi/transaction/1/query?level=file&transactionid=MWWA7190&format=text</a>\n<br>\n</ul>\n <div>\n\n      \n\n  </div>\n  <br>\n</div>\n\n</body>\n</html>"
