How can I verify if the REST API service is running and accessible without using third-party tools? |
To verify that the REST API service is running without using third-party tools, perform these steps:- 1.Verify Configuration 2. Test REST API from the AR Server (Windows) Open Windows PowerShell on the server hosting the AR System and run the following command:- curl -Method 'Post' -Uri http://myserver.example.com:8008/api/jwt/login -Body 'username=Demo&password=password' -ContentType 'application/x-www-form-urlencoded' | Select-Object -Expand Content 3. Test REST API from the AR Server (Linux) On Linux, open a terminal and run the following command:- curl -XPOST -H 'Content-Type: application/x-www-form-urlencoded' -d 'username=Demo&password=password' 'http://myserver.example.com:8008/api/jwt/login' 4. Check the Response
Note: Expected Result:- A successful request returns a JWT token, confirming that the REST API service is active and responding. |