Sha256: 3b64c8dd331a4c89f859805f25ed528035fbe0df74f88822798a1da8262cb95a

Contents?: true

Size: 1.66 KB

Versions: 15

Compression:

Stored size: 1.66 KB

Contents

# OryHydraClient::VersionApi

All URIs are relative to *http://localhost*

| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**get_version**](VersionApi.md#get_version) | **GET** /version | Get service version |


## get_version

> <Version> get_version

Get service version

This endpoint returns the service version typically notated using semantic versioning.  If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set.  Be aware that if you are running multiple nodes of this service, the health status will never refer to the cluster state, only to a single instance.

### Examples

```ruby
require 'time'
require 'ory-keto-client'

api_instance = OryHydraClient::VersionApi.new

begin
  # Get service version
  result = api_instance.get_version
  p result
rescue OryHydraClient::ApiError => e
  puts "Error when calling VersionApi->get_version: #{e}"
end
```

#### Using the get_version_with_http_info variant

This returns an Array which contains the response data, status code and headers.

> <Array(<Version>, Integer, Hash)> get_version_with_http_info

```ruby
begin
  # Get service version
  data, status_code, headers = api_instance.get_version_with_http_info
  p status_code # => 2xx
  p headers # => { ... }
  p data # => <Version>
rescue OryHydraClient::ApiError => e
  puts "Error when calling VersionApi->get_version_with_http_info: #{e}"
end
```

### Parameters

This endpoint does not need any parameter.

### Return type

[**Version**](Version.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ory-keto-client-0.6.0.alpha6 docs/VersionApi.md
ory-keto-client-0.6.0.alpha3 docs/VersionApi.md
ory-keto-client-0.6.0.alpha1 docs/VersionApi.md
ory-keto-client-0.0.0.alpha58 docs/VersionApi.md
ory-keto-client-0.0.0.alpha57 docs/VersionApi.md
ory-keto-client-0.0.0.alpha56 docs/VersionApi.md
ory-keto-client-0.0.0.alpha55 docs/VersionApi.md
ory-keto-client-0.0.0.alpha54 docs/VersionApi.md
ory-keto-client-0.0.0.alpha53 docs/VersionApi.md
ory-keto-client-0.0.0.alpha52 docs/VersionApi.md
ory-keto-client-0.0.0.alpha51 docs/VersionApi.md
ory-keto-client-0.0.0.alpha50 docs/VersionApi.md
ory-keto-client-0.0.0.alpha49 docs/VersionApi.md
ory-keto-client-0.0.0.alpha48 docs/VersionApi.md
ory-keto-client-0.0.0.alpha47 docs/VersionApi.md