REST - Conversion
REST-Interface
REST-Interface
Get the current size of the conversion-queue.
URL
GET <application-url>/api/conversion/queue
Produces
text/plain
Integer - queue-size
Permission
Login
Sample
GET http://localhost:8080/mtr-backend/api/conversion/queue
URL
POST <application-url>/api/conversion/markdown2html
Consumes
text/plain
String - markdown
# Header
* One
* Two
Produces
text/html
String - html
<h1>
<a href="#header" name="header"></a>Header
</h1>
<ul>
<li>One</li>
<li>Two</li>
</ul>
Permission
Login
Sample
POST http://localhost:8080/mtr-backend/api/conversion/markdown2html
URL
POST <application-url>/api/conversion/html2markdown
Query parameter
Consumes
text/html
String - html
<h1>Header</h1>
<ul>
<li>One</li>
<li>Two</li>
</ul>
Produces
text/plain
String - markdown
# Header
* One
* Two
Permission
Login
Sample
POST http://localhost:8080/mtr-backend/api/conversion/html2markdown