Skip to content

Latest commit

 

History

History
82 lines (62 loc) · 2.44 KB

IndexerApi.md

File metadata and controls

82 lines (62 loc) · 2.44 KB

Opdex.Client.Api.IndexerApi

All URIs are relative to https://v1-test-api.opdex.com/v1

Method HTTP request Description
GetIndexerStatus GET /indexer Get Indexer Status

GetIndexerStatus

IndexerStatusResponse GetIndexerStatus ()

Get Indexer Status

Retrieves status details for the Opdex transaction indexer.

Example

using System.Collections.Generic;
using System.Diagnostics;
using System.Net.Http;
using Opdex.Client.Api;
using Opdex.Client.Client;
using Opdex.Client.Model;

namespace Example
{
    public class GetIndexerStatusExample
    {
        public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "https://v1-test-api.opdex.com/v1";
            // create instances of HttpClient, HttpClientHandler to be reused later with different Api classes
            HttpClient httpClient = new HttpClient();
            HttpClientHandler httpClientHandler = new HttpClientHandler();
            var apiInstance = new IndexerApi(httpClient, config, httpClientHandler);

            try
            {
                // Get Indexer Status
                IndexerStatusResponse result = apiInstance.GetIndexerStatus();
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling IndexerApi.GetIndexerStatus: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

IndexerStatusResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/problem+json

HTTP response details

Status code Description Response headers
200 Indexer status retrieved -
429 Too many requests * Retry-After - Indicates how many seconds to wait before making a follow-up request
500 Unexpected error occurred -

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