Sha256: 541d7d1fe54661f0850fa371d9082d08a1dafbfd5935f7760850f245bc0dc095

Contents?: true

Size: 1.94 KB

Versions: 3

Compression:

Stored size: 1.94 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 leader of cluster. 

### 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

3 entries across 3 versions & 1 rubygems

Version Path
dkron-rb-1.0.0 docs/DefaultApi.md
dkron-rb-0.11.2 docs/DefaultApi.md
dkron-rb-0.10.0 docs/DefaultApi.md