Sha256: e7ac3531bff41266321314c60e9404297defc40e94655705db177ff0492dc5e5
Contents?: true
Size: 1.93 KB
Versions: 1
Compression:
Stored size: 1.93 KB
Contents
# 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) | **GET** /leave | [**status**](DefaultApi.md#status) | **GET** / | # **get_leader** > Member get_leader List members. ### Example ```ruby # load the gem require 'dkron-rb' 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-rb' 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-rb' 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dkron-rb-0.9.2 | docs/DefaultApi.md |