version.lcrs (get) REST API endpoint

The version.lcrs endpoint may be used to test that the endpoints created when a workflow is registered as a REST API are available to a calling program. The version.lcrs endpoint returns the following version string.

{
	"version": "5.3.7.24403"
}

Note that 5.3.7 is the internal version number of LiveCompare 2023.3 patch 7.

The version.lcrs endpoint may be tested from the command line using curl, for example:

curl http://localhost/livecompare/studio/api/version.lcrs

Test script

In Postman’s Test tab, the following test script may be run when a response from version.lcrs is received to check that the response has a status code of 200.

Select the Tests tab. The following script is run after a response from version.lcrs is received, to check that the response has a status code of 200.

pm.test("Status code is 200", function () {
	pm.response.to.have.status(200);
});

A status code of 200 means that the endpoint ran successfully.

EchoInteger REST API example

EchoFloat REST API example

EchoString REST API example

EchoBoolean REST API example

EchoTable REST API example