Skip to content

Managing the REST server

Start and stop the MVrest server, reset its connections and check their status.

Starting the Server

For testing purposes you can start the REST server from the MVrest Administrator. On the REST Web Services tab, select "Start the REST Server". This will start the server on your local machine.

Stopping the Server

There are some default GET REST calls to manage the REST server. Submitting the following HTTP GET call will stop the REST server. This can be done from a REST client or in a browser.

http://localhost:{port}/api/stop

Resetting the Connections on the Server

If there are connections to MVsharp that are not processing, all connections can be reset without restarting the REST server with the following URL:

http://localhost:{port}/api/reset

Getting the Connection Status

To check the number of connections and the status of each connection, use the following URL:

http://localhost:{port}/api/status

JSON
  [
      {
          "connection": "Thread 1",
          "lastProcessed": "2020-04-08T16:34:20.1146296+02:00",
          "messagesProcessed": 1,
          "isProcessing": false
      }
  ]