Using REST API and send POST request
<pre><code>POST localhost:5000/registrar

{
  "enrollId": "jim",
  "enrollSecret": "6avZQLwcUe9b"
}
</code></pre>

<p>How do I use this in a javascript file? Do I use JSON or JQuery? And how do I invoke the request function in .html?</p>