ory-kratos-client 0.5.0.alpha1 → 0.5.5.alpha2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -7
- data/docs/AdminApi.md +382 -143
- data/docs/CompleteSelfServiceLoginFlowWithPasswordMethod.md +12 -11
- data/docs/CompleteSelfServiceRecoveryFlowWithLinkMethod.md +10 -9
- data/docs/CompleteSelfServiceSettingsFlowWithPasswordMethod.md +10 -9
- data/docs/CompleteSelfServiceVerificationFlowWithLinkMethod.md +10 -9
- data/docs/CreateIdentity.md +10 -9
- data/docs/CreateRecoveryLink.md +10 -9
- data/docs/ErrorContainer.md +10 -9
- data/docs/FormField.md +20 -19
- data/docs/GenericError.md +8 -7
- data/docs/GenericErrorPayload.md +20 -19
- data/docs/HealthApi.md +50 -15
- data/docs/HealthNotReadyStatus.md +8 -7
- data/docs/HealthStatus.md +8 -7
- data/docs/Identity.md +18 -17
- data/docs/LoginFlow.md +24 -23
- data/docs/LoginFlowMethod.md +10 -9
- data/docs/LoginFlowMethodConfig.md +16 -15
- data/docs/LoginViaApiResponse.md +10 -9
- data/docs/Message.md +14 -13
- data/docs/PublicApi.md +707 -237
- data/docs/RecoveryAddress.md +12 -11
- data/docs/RecoveryFlow.md +24 -23
- data/docs/RecoveryFlowMethod.md +10 -9
- data/docs/RecoveryFlowMethodConfig.md +14 -13
- data/docs/RecoveryLink.md +10 -9
- data/docs/RegistrationFlow.md +22 -21
- data/docs/RegistrationFlowMethod.md +10 -9
- data/docs/RegistrationFlowMethodConfig.md +16 -15
- data/docs/RegistrationViaApiResponse.md +12 -11
- data/docs/RevokeSession.md +8 -7
- data/docs/Session.md +18 -17
- data/docs/SettingsFlow.md +26 -25
- data/docs/SettingsFlowMethod.md +10 -9
- data/docs/SettingsFlowMethodConfig.md +14 -13
- data/docs/SettingsViaApiResponse.md +10 -9
- data/docs/UpdateIdentity.md +10 -9
- data/docs/VerifiableAddress.md +18 -17
- data/docs/VerificationFlow.md +24 -23
- data/docs/VerificationFlowMethod.md +10 -9
- data/docs/VerificationFlowMethodConfig.md +14 -13
- data/docs/Version.md +8 -7
- data/docs/VersionApi.md +26 -9
- data/lib/ory-kratos-client.rb +2 -2
- data/lib/ory-kratos-client/api/admin_api.rb +58 -44
- data/lib/ory-kratos-client/api/health_api.rb +10 -8
- data/lib/ory-kratos-client/api/public_api.rb +113 -86
- data/lib/ory-kratos-client/api/version_api.rb +6 -5
- data/lib/ory-kratos-client/api_client.rb +50 -48
- data/lib/ory-kratos-client/api_error.rb +2 -2
- data/lib/ory-kratos-client/configuration.rb +34 -7
- data/lib/ory-kratos-client/models/complete_self_service_login_flow_with_password_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_recovery_flow_with_link_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_settings_flow_with_password_method.rb +20 -8
- data/lib/ory-kratos-client/models/complete_self_service_verification_flow_with_link_method.rb +20 -8
- data/lib/ory-kratos-client/models/create_identity.rb +20 -8
- data/lib/ory-kratos-client/models/create_recovery_link.rb +20 -8
- data/lib/ory-kratos-client/models/error_container.rb +20 -8
- data/lib/ory-kratos-client/models/form_field.rb +20 -8
- data/lib/ory-kratos-client/models/generic_error.rb +20 -8
- data/lib/ory-kratos-client/models/generic_error_payload.rb +20 -8
- data/lib/ory-kratos-client/models/health_not_ready_status.rb +20 -8
- data/lib/ory-kratos-client/models/health_status.rb +20 -8
- data/lib/ory-kratos-client/models/identity.rb +20 -8
- data/lib/ory-kratos-client/models/login_flow.rb +22 -10
- data/lib/ory-kratos-client/models/login_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/login_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/login_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/message.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_address.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_flow.rb +22 -10
- data/lib/ory-kratos-client/models/recovery_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/recovery_link.rb +21 -9
- data/lib/ory-kratos-client/models/registration_flow.rb +22 -10
- data/lib/ory-kratos-client/models/registration_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/registration_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/registration_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/revoke_session.rb +20 -8
- data/lib/ory-kratos-client/models/session.rb +23 -11
- data/lib/ory-kratos-client/models/settings_flow.rb +22 -10
- data/lib/ory-kratos-client/models/settings_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/settings_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/settings_via_api_response.rb +20 -8
- data/lib/ory-kratos-client/models/update_identity.rb +20 -8
- data/lib/ory-kratos-client/models/verifiable_address.rb +21 -9
- data/lib/ory-kratos-client/models/verification_flow.rb +22 -10
- data/lib/ory-kratos-client/models/verification_flow_method.rb +20 -8
- data/lib/ory-kratos-client/models/verification_flow_method_config.rb +20 -8
- data/lib/ory-kratos-client/models/version.rb +20 -8
- data/lib/ory-kratos-client/version.rb +3 -3
- data/ory-kratos-client.gemspec +4 -5
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +49 -69
@@ -2,20 +2,21 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
|
8
|
-
**identifier** | **String** | Identifier is the email or username of the user trying to log in. | [optional]
|
9
|
-
**password** | **String** | The user's password. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
|
8
|
+
| **identifier** | **String** | Identifier is the email or username of the user trying to log in. | [optional] |
|
9
|
+
| **password** | **String** | The user's password. | [optional] |
|
10
10
|
|
11
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'ory-kratos-client'
|
15
15
|
|
16
|
-
instance = OryHydraClient::CompleteSelfServiceLoginFlowWithPasswordMethod.new(
|
17
|
-
|
18
|
-
|
16
|
+
instance = OryHydraClient::CompleteSelfServiceLoginFlowWithPasswordMethod.new(
|
17
|
+
csrf_token: null,
|
18
|
+
identifier: null,
|
19
|
+
password: null
|
20
|
+
)
|
19
21
|
```
|
20
22
|
|
21
|
-
|
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
|
8
|
-
**email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
|
8
|
+
| **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional] |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::CompleteSelfServiceRecoveryFlowWithLinkMethod.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::CompleteSelfServiceRecoveryFlowWithLinkMethod.new(
|
16
|
+
csrf_token: null,
|
17
|
+
email: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**csrf_token** | **String** | CSRFToken is the anti-CSRF token type: string | [optional]
|
8
|
-
**password** | **String** | Password is the updated password type: string |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **csrf_token** | **String** | CSRFToken is the anti-CSRF token type: string | [optional] |
|
8
|
+
| **password** | **String** | Password is the updated password type: string | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::CompleteSelfServiceSettingsFlowWithPasswordMethod.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::CompleteSelfServiceSettingsFlowWithPasswordMethod.new(
|
16
|
+
csrf_token: null,
|
17
|
+
password: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional]
|
8
|
-
**email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] |
|
8
|
+
| **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email in: body | [optional] |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::CompleteSelfServiceVerificationFlowWithLinkMethod.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::CompleteSelfServiceVerificationFlowWithLinkMethod.new(
|
16
|
+
csrf_token: null,
|
17
|
+
email: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/CreateIdentity.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. |
|
8
|
-
**traits** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | |
|
8
|
+
| **traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::CreateIdentity.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::CreateIdentity.new(
|
16
|
+
schema_id: null,
|
17
|
+
traits: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/CreateRecoveryLink.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**expires_in** | **String** | Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`. | [optional]
|
8
|
-
**identity_id** | **String** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **expires_in** | **String** | Link Expires In The recovery link will expire at that point in time. Defaults to the configuration value of `selfservice.flows.recovery.request_lifespan`. | [optional] |
|
8
|
+
| **identity_id** | **String** | | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::CreateRecoveryLink.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::CreateRecoveryLink.new(
|
16
|
+
expires_in: null,
|
17
|
+
identity_id: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/ErrorContainer.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**errors** |
|
8
|
-
**id** | **String** | |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **errors** | **Object** | Errors in the container | |
|
8
|
+
| **id** | **String** | | |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'ory-kratos-client'
|
14
14
|
|
15
|
-
instance = OryHydraClient::ErrorContainer.new(
|
16
|
-
|
15
|
+
instance = OryHydraClient::ErrorContainer.new(
|
16
|
+
errors: null,
|
17
|
+
id: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/FormField.md
CHANGED
@@ -2,28 +2,29 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**disabled** | **Boolean** | Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">` | [optional]
|
8
|
-
**messages** | [**Array<Message>**](Message.md) | | [optional]
|
9
|
-
**name** | **String** | Name is the equivalent of `<input name=\"{{.Name}}\">` |
|
10
|
-
**pattern** | **String** | Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">` | [optional]
|
11
|
-
**required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` | [optional]
|
12
|
-
**type** | **String** | Type is the equivalent of `<input type=\"{{.Type}}\">` |
|
13
|
-
**value** |
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **disabled** | **Boolean** | Disabled is the equivalent of `<input {{if .Disabled}}disabled{{end}}\">` | [optional] |
|
8
|
+
| **messages** | [**Array<Message>**](Message.md) | | [optional] |
|
9
|
+
| **name** | **String** | Name is the equivalent of `<input name=\"{{.Name}}\">` | |
|
10
|
+
| **pattern** | **String** | Pattern is the equivalent of `<input pattern=\"{{.Pattern}}\">` | [optional] |
|
11
|
+
| **required** | **Boolean** | Required is the equivalent of `<input required=\"{{.Required}}\">` | [optional] |
|
12
|
+
| **type** | **String** | Type is the equivalent of `<input type=\"{{.Type}}\">` | |
|
13
|
+
| **value** | **Object** | Value is the equivalent of `<input value=\"{{.Value}}\">` | [optional] |
|
14
14
|
|
15
|
-
##
|
15
|
+
## Example
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
require '
|
18
|
+
require 'ory-kratos-client'
|
19
19
|
|
20
|
-
instance = OryHydraClient::FormField.new(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
instance = OryHydraClient::FormField.new(
|
21
|
+
disabled: null,
|
22
|
+
messages: null,
|
23
|
+
name: null,
|
24
|
+
pattern: null,
|
25
|
+
required: null,
|
26
|
+
type: null,
|
27
|
+
value: null
|
28
|
+
)
|
27
29
|
```
|
28
30
|
|
29
|
-
|
data/docs/GenericError.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**error** | [**GenericErrorPayload**](GenericErrorPayload.md) | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **error** | [**GenericErrorPayload**](GenericErrorPayload.md) | | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'ory-kratos-client'
|
13
13
|
|
14
|
-
instance = OryHydraClient::GenericError.new(
|
14
|
+
instance = OryHydraClient::GenericError.new(
|
15
|
+
error: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/GenericErrorPayload.md
CHANGED
@@ -2,28 +2,29 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**code** | **Integer** | Code represents the error status code (404, 403, 401, ...). | [optional]
|
8
|
-
**debug** | **String** | Debug contains debug information. This is usually not available and has to be enabled. | [optional]
|
9
|
-
**details** |
|
10
|
-
**message** | **String** | | [optional]
|
11
|
-
**reason** | **String** | | [optional]
|
12
|
-
**request** | **String** | | [optional]
|
13
|
-
**status** | **String** | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **Integer** | Code represents the error status code (404, 403, 401, ...). | [optional] |
|
8
|
+
| **debug** | **String** | Debug contains debug information. This is usually not available and has to be enabled. | [optional] |
|
9
|
+
| **details** | **Object** | | [optional] |
|
10
|
+
| **message** | **String** | | [optional] |
|
11
|
+
| **reason** | **String** | | [optional] |
|
12
|
+
| **request** | **String** | | [optional] |
|
13
|
+
| **status** | **String** | | [optional] |
|
14
14
|
|
15
|
-
##
|
15
|
+
## Example
|
16
16
|
|
17
17
|
```ruby
|
18
|
-
require '
|
18
|
+
require 'ory-kratos-client'
|
19
19
|
|
20
|
-
instance = OryHydraClient::GenericErrorPayload.new(
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
instance = OryHydraClient::GenericErrorPayload.new(
|
21
|
+
code: 404,
|
22
|
+
debug: The database adapter was unable to find the element,
|
23
|
+
details: null,
|
24
|
+
message: null,
|
25
|
+
reason: null,
|
26
|
+
request: null,
|
27
|
+
status: null
|
28
|
+
)
|
27
29
|
```
|
28
30
|
|
29
|
-
|
data/docs/HealthApi.md
CHANGED
@@ -2,35 +2,52 @@
|
|
2
2
|
|
3
3
|
All URIs are relative to *http://localhost*
|
4
4
|
|
5
|
-
Method | HTTP request | Description
|
6
|
-
|
7
|
-
[**is_instance_alive**](HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status
|
8
|
-
[**is_instance_ready**](HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status
|
9
|
-
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**is_instance_alive**](HealthApi.md#is_instance_alive) | **GET** /health/alive | Check alive status |
|
8
|
+
| [**is_instance_ready**](HealthApi.md#is_instance_ready) | **GET** /health/ready | Check readiness status |
|
10
9
|
|
11
10
|
|
12
11
|
## is_instance_alive
|
13
12
|
|
14
|
-
> HealthStatus is_instance_alive
|
13
|
+
> <HealthStatus> is_instance_alive
|
15
14
|
|
16
15
|
Check alive status
|
17
16
|
|
18
17
|
This endpoint returns a 200 status code when the HTTP server is up running. This status does currently not include checks whether the database connection is working. 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.
|
19
18
|
|
20
|
-
###
|
19
|
+
### Examples
|
21
20
|
|
22
21
|
```ruby
|
23
|
-
|
22
|
+
require 'time'
|
24
23
|
require 'ory-kratos-client'
|
25
24
|
|
26
25
|
api_instance = OryHydraClient::HealthApi.new
|
27
26
|
|
28
27
|
begin
|
29
|
-
#Check alive status
|
28
|
+
# Check alive status
|
30
29
|
result = api_instance.is_instance_alive
|
31
30
|
p result
|
32
31
|
rescue OryHydraClient::ApiError => e
|
33
|
-
puts "
|
32
|
+
puts "Error when calling HealthApi->is_instance_alive: #{e}"
|
33
|
+
end
|
34
|
+
```
|
35
|
+
|
36
|
+
#### Using the is_instance_alive_with_http_info variant
|
37
|
+
|
38
|
+
This returns an Array which contains the response data, status code and headers.
|
39
|
+
|
40
|
+
> <Array(<HealthStatus>, Integer, Hash)> is_instance_alive_with_http_info
|
41
|
+
|
42
|
+
```ruby
|
43
|
+
begin
|
44
|
+
# Check alive status
|
45
|
+
data, status_code, headers = api_instance.is_instance_alive_with_http_info
|
46
|
+
p status_code # => 2xx
|
47
|
+
p headers # => { ... }
|
48
|
+
p data # => <HealthStatus>
|
49
|
+
rescue OryHydraClient::ApiError => e
|
50
|
+
puts "Error when calling HealthApi->is_instance_alive_with_http_info: #{e}"
|
34
51
|
end
|
35
52
|
```
|
36
53
|
|
@@ -54,26 +71,44 @@ No authorization required
|
|
54
71
|
|
55
72
|
## is_instance_ready
|
56
73
|
|
57
|
-
> HealthStatus is_instance_ready
|
74
|
+
> <HealthStatus> is_instance_ready
|
58
75
|
|
59
76
|
Check readiness status
|
60
77
|
|
61
78
|
This endpoint returns a 200 status code when the HTTP server is up running and the environment dependencies (e.g. the database) are responsive as well. 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.
|
62
79
|
|
63
|
-
###
|
80
|
+
### Examples
|
64
81
|
|
65
82
|
```ruby
|
66
|
-
|
83
|
+
require 'time'
|
67
84
|
require 'ory-kratos-client'
|
68
85
|
|
69
86
|
api_instance = OryHydraClient::HealthApi.new
|
70
87
|
|
71
88
|
begin
|
72
|
-
#Check readiness status
|
89
|
+
# Check readiness status
|
73
90
|
result = api_instance.is_instance_ready
|
74
91
|
p result
|
75
92
|
rescue OryHydraClient::ApiError => e
|
76
|
-
puts "
|
93
|
+
puts "Error when calling HealthApi->is_instance_ready: #{e}"
|
94
|
+
end
|
95
|
+
```
|
96
|
+
|
97
|
+
#### Using the is_instance_ready_with_http_info variant
|
98
|
+
|
99
|
+
This returns an Array which contains the response data, status code and headers.
|
100
|
+
|
101
|
+
> <Array(<HealthStatus>, Integer, Hash)> is_instance_ready_with_http_info
|
102
|
+
|
103
|
+
```ruby
|
104
|
+
begin
|
105
|
+
# Check readiness status
|
106
|
+
data, status_code, headers = api_instance.is_instance_ready_with_http_info
|
107
|
+
p status_code # => 2xx
|
108
|
+
p headers # => { ... }
|
109
|
+
p data # => <HealthStatus>
|
110
|
+
rescue OryHydraClient::ApiError => e
|
111
|
+
puts "Error when calling HealthApi->is_instance_ready_with_http_info: #{e}"
|
77
112
|
end
|
78
113
|
```
|
79
114
|
|