Skip to content

Latest commit

 

History

History
83 lines (59 loc) · 1.77 KB

PingApi.md

File metadata and controls

83 lines (59 loc) · 1.77 KB

org.egoi.client.api.Api.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

using System.Collections.Generic;
using System.Diagnostics;
using org.egoi.client.api.Api;
using org.egoi.client.api.Client;
using org.egoi.client.api.Model;

namespace Example
{
    public class PingExample
    {
        public static void Main()
        {
            Configuration.Default.BasePath = "https://api.egoiapp.com";
            var apiInstance = new PingApi(Configuration.Default);

            try
            {
                // Pings the API
                Ping result = apiInstance.Ping();
                Debug.WriteLine(result);
            }
            catch (ApiException e)
            {
                Debug.Print("Exception when calling PingApi.Ping: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

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 -

[Back to top] [Back to API list] [Back to Model list] [Back to README]