wiki:urlContents

Accessing TNTBase via URLs

Method

  • URL: /urlContent/{URL}
    • Method: GET
    • Returns: text/xml
    • Description: returns the content of the provided URL. A user should NOT care about what entity is at this URL: direcory, XML document of a virtual file. If the target is a directory then XML list of directory entries is returned (including virtual files). If URL doesn't exist in TNTBase then exeptional document with code 2 is returned.

Example

  • URL:  http://localhost:8080/lectures/restful/urlContent/atp0/en/proptab-irrefutable-acc.omdoc
  • Method: GET
  • Result:
    <?xml version="1.0"?>
    <!--This OMDoc document is generated from an sTeX-encoded one via LaTeXML, you may want to reconsider editing it.-->
    <omdoc xmlns="http://omdoc.org/ns" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:om="http://www.openmath.org/OpenMath" xmlns:m="http://www.w3.org/1998/Math/MathML">
      <theory xml:id="proptab-irrefutable-acc">
     .....
    </omdoc>