Sha256: bdc1a58c57febc9342e6ab7bd1950b8f7799c2757e6da263b0b5cfc2ae2a466c

Contents?: true

Size: 1.95 KB

Versions: 1

Compression:

Stored size: 1.95 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) | **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



Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dkron-ruby-1.0.0 docs/DefaultApi.md