REST - Conversion

REST-Interface

Get queue-size

Get the current size of the conversion-queue.
URL
GET <application-url>/api/conversion/queue

Produces

text/plain

Integer - queue-size

  • 200 OK
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
GET http://localhost:8080/mtr-backend/api/conversion/queue


Markdown to Html

URL
POST <application-url>/api/conversion/markdown2html

Consumes

text/plain

String - markdown
```markdown

Header

  • One
  • Two ```

Produces

text/html

String - html
html
<h1>
<a href="#header" name="header"></a>Header
</h1>
<ul>
<li>One</li>
<li>Two</li>
</ul>

  • 200 OK
  • 400 BAD_REQUEST
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
POST http://localhost:8080/mtr-backend/api/conversion/markdown2html


Html to Markdown

URL
POST <application-url>/api/conversion/html2markdown

Consumes

text/html

String - html
html
<h1>Header</h1>
<ul>
<li>One</li>
<li>Two</li>
</ul>

Produces

text/plain

String - markdown
```markdown

Header

  • One
  • Two ```
  • 200 OK
  • 400 BAD_REQUEST
  • 500 INTERNAL_SERVER_ERROR

Permission
Login

Sample
POST http://localhost:8080/mtr-backend/api/conversion/html2markdown

×
Peter's Problem.