How can we get from service if the service is rest api or not.
In order to test a service you need to know something about it. What documentation do you have about the service you intend to test? SOAP services are typically described by a WSDL. A REST API may be described by something like an OpenAPI document.