import 'package:kratos_api_dart/api.dart';
All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
getVersion | GET /version | Return Running Software Version. |
isAlive | GET /health/alive | Check HTTP Server Status |
isReady | GET /health/ready | Check HTTP Server and Database Status |
InlineResponse2001 getVersion()
Return Running Software Version.
This endpoint returns the version of Ory Kratos. 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 version will never refer to the cluster state, only to a single instance.
import 'package:kratos_api_dart/api.dart';
final api = KratosApiDart().getMetadataApi();
try {
final response = api.getVersion();
print(response);
} catch on DioError (e) {
print('Exception when calling MetadataApi->getVersion: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 isAlive()
Check HTTP Server Status
This endpoint returns a HTTP 200 status code when Ory Kratos is accepting incoming HTTP requests. 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.
import 'package:kratos_api_dart/api.dart';
final api = KratosApiDart().getMetadataApi();
try {
final response = api.isAlive();
print(response);
} catch on DioError (e) {
print('Exception when calling MetadataApi->isAlive: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
InlineResponse200 isReady()
Check HTTP Server and Database Status
This endpoint returns a HTTP 200 status code when Ory Kratos 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 Ory Kratos, the health status will never refer to the cluster state, only to a single instance.
import 'package:kratos_api_dart/api.dart';
final api = KratosApiDart().getMetadataApi();
try {
final response = api.isReady();
print(response);
} catch on DioError (e) {
print('Exception when calling MetadataApi->isReady: $e\n');
}
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]