All URIs are relative to http://localhost:8090
Method | HTTP request | Description |
---|---|---|
health_check | GET /api/health | Health Check |
health_check
Health Check
Health Check Confirmation that the service is healthy and can make embedding vectors
require 'time'
require 'trieve_ruby_client'
api_instance = TrieveRubyClient::HealthApi.new
begin
# Health Check
api_instance.health_check
rescue TrieveRubyClient::ApiError => e
puts "Error when calling HealthApi->health_check: #{e}"
end
This returns an Array which contains the response data (nil
in this case), status code and headers.
<Array(nil, Integer, Hash)> health_check_with_http_info
begin
# Health Check
data, status_code, headers = api_instance.health_check_with_http_info
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue TrieveRubyClient::ApiError => e
puts "Error when calling HealthApi->health_check_with_http_info: #{e}"
end
This endpoint does not need any parameter.
nil (empty response body)
No authorization required
- Content-Type: Not defined
- Accept: application/json