ReSTful, Representational State Transfer


Tibula only supports ReSt GET method, passing attributes from the url both as Http or Https.

ejaSession and ejaXmlRestAction are mandatory.
It possible to retrieve value also in xml-rpc form passing the ejaXml=RPC attribute.
Arrays must be in the form of name[key]=value.

Response are always valid xhtml 1.0
It is possible to limit the response body to header, menu, module, info, command, footer passing a comma separated list of ejaXmlBlocks (i.e. ejaXmlBlocks=menu,module,info )

Samples

A valid ReST request:

http://www.tibula.net/tibula.php?ejaSession=webSession&ejaXmlRestAction=search&ejaModuleName=webContents&ejaXmlBlocks=module

A valid Rest response:
<?xml version="1.0"?>
 <div id="ejaModule" class="ejaModuleWebContents">
  <table id="ejaTableList" border="1">
   <tr>
    <th class="mini">
     <input type="checkbox" name="ejaIdCheckAll" />
    </th>
    <th>name</th>
    <th class="mini">
     <select name="ejaSearchOrder[name]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
    <th>block</th>
    <th class="mini">
     <select name="ejaSearchOrder[webModule]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
    <th>area</th>
    <th class="mini">
     <select name="ejaSearchOrder[webArea]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
    <th>domain</th>
    <th class="mini">
     <select name="ejaSearchOrder[webSite]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
    <th>language</th>
    <th class="mini">
     <select name="ejaSearchOrder[language]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
    <th>hidden</th>
    <th class="mini">
     <select name="ejaSearchOrder[hidden]">
      <option></option>
      <option value="ASC">AZ</option>
      <option value="DESC">ZA</option>
     </select>
    </th>
   </tr>
   <tr>
    <td>
     <input type="checkbox" name="ejaId[]" value="105" />
    </td>
    <td colspan="2">xmlRpc</td>
    <td colspan="2">tibula.net: content</td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net</td>
    <td colspan="2"></td>
    <td colspan="2">0</td>
   </tr>
   <tr>
    <td>
     <input type="checkbox" name="ejaId[]" value="81" />
    </td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net: autor</td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net</td>
    <td colspan="2"></td>
    <td colspan="2">0</td>
   </tr>
   <tr>
    <td>
     <input type="checkbox" name="ejaId[]" value="80" />
    </td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net: copyright</td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net</td>
    <td colspan="2"></td>
    <td colspan="2">0</td>
   </tr>
   <tr>
    <td>
     <input type="checkbox" name="ejaId[]" value="69" />
    </td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net: content</td>
    <td colspan="2"></td>
    <td colspan="2">tibula.net</td>
    <td colspan="2"></td>
    <td colspan="2">0</td>
   </tr>
   <tr>    
    <th colspan="14">1-4 / 4</th>
   </tr>
  </table>
 </div>