# Dkron::DefaultApi All URIs are relative to *http://localhost:8080/v1* Method | HTTP request | Description ------------- | ------------- | ------------- [**get_leader**](DefaultApi.md#get_leader) | **GET** /leader | [**leave**](DefaultApi.md#leave) | **POST** /leave | [**status**](DefaultApi.md#status) | **GET** / | # **get_leader** > Member get_leader List leader of cluster. ### Example ```ruby # load the gem require 'dkron-ruby' api_instance = Dkron::DefaultApi.new begin result = api_instance.get_leader p result rescue Dkron::ApiError => e puts "Exception when calling DefaultApi->get_leader: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Member**](Member.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **leave** > Array<Member> leave Force the node to leave the cluster. ### Example ```ruby # load the gem require 'dkron-ruby' api_instance = Dkron::DefaultApi.new begin result = api_instance.leave p result rescue Dkron::ApiError => e puts "Exception when calling DefaultApi->leave: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Array<Member>**](Member.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json # **status** > Status status Gets `Status` object. ### Example ```ruby # load the gem require 'dkron-ruby' api_instance = Dkron::DefaultApi.new begin result = api_instance.status p result rescue Dkron::ApiError => e puts "Exception when calling DefaultApi->status: #{e}" end ``` ### Parameters This endpoint does not need any parameter. ### Return type [**Status**](Status.md) ### Authorization No authorization required ### HTTP request headers - **Content-Type**: application/json - **Accept**: application/json