Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.6 KB

PingApi.md

File metadata and controls

69 lines (51 loc) · 1.6 KB

PingApi

All URIs are relative to https://api.egoiapp.com

Method HTTP request Description
ping POST /ping Pings the API

ping

Ping ping()

Pings the API

Checks if API is up and running

Example

// 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();
    }
  }
}

Parameters

This endpoint does not need any parameter.

Return type

Ping

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 OK -
500 Internal Server Error -
503 Service Unavailable -