All URIs are relative to https://api.egoiapp.com
Method | HTTP request | Description |
---|---|---|
ping | POST /ping | Pings the API |
Ping ping()
Pings the API
Checks if API is up and running
// Import classes:
import org.egoi.client.ApiClient;
import org.egoi.client.ApiException;
import org.egoi.client.Configuration;
import org.egoi.client.models.*;
import org.egoi.client.api.PingApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.egoiapp.com");
PingApi apiInstance = new PingApi(defaultClient);
try {
Ping result = apiInstance.ping();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PingApi#ping");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
500 | Internal Server Error | - |
503 | Service Unavailable | - |