Check the service is running
GET
/ServiceOk
const url = 'http://localhost:80/PhantomService.svc/ServiceOk';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:80/PhantomService.svc/ServiceOkResponses
Section titled “Responses”The service is up.
Media typeapplication/json
integer
Examplegenerated
1