Interface RestCall<T>
- Type Parameters:
T- type of the response
public interface RestCall<T>
API for making generic REST calls to Fusion services.
Example:
String response = fusion.restCall(String.class)
.get("http://query/query-pipelines/my-pipeline/collections/my-collection/select")
.param("q", "id:example_1")
.execute();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionPerform DELETE call.Perform GET call.Perform POST call.Perform PUT call.
-
Method Details
-
get
Perform GET call.- Parameters:
serviceUrl- service URL to make call to- Returns:
- REST call builder
-
put
Perform PUT call.- Parameters:
serviceUrl- service URL to make call to- Returns:
- REST call builder
-
post
Perform POST call.- Parameters:
serviceUrl- service URL to make call to- Returns:
- REST call builder
-
delete
Perform DELETE call.- Parameters:
serviceUrl- service URL to make call to- Returns:
- REST call builder
-