All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| health_check_api_v1_health_check_get | GET /api/v1/health/check | 检查服务器是否正确响应请求 / Check if the server responds to requests correctly |
| health_check_api_v1_health_check_get_0 | GET /api/v1/health/check | 检查服务器是否正确响应请求 / Check if the server responds to requests correctly |
HealthCheckResponse health_check_api_v1_health_check_get()
检查服务器是否正确响应请求 / Check if the server responds to requests correctly
[中文] ### 用途说明: - 检查服务器是否正确响应请求。 ### 参数说明: - 无参数。 ### 返回结果: - status: 服务器状态,正常为 ok。 # [English] ### Purpose: - Check if the server responds to requests correctly. ### Parameter Description: - No parameters. ### Return Result: - status: Server status, normal is ok.
- Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tikhub_sdk_v2.HealthCheckApi(api_client)
try:
# 检查服务器是否正确响应请求 / Check if the server responds to requests correctly
api_response = api_instance.health_check_api_v1_health_check_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling HealthCheckApi->health_check_api_v1_health_check_get: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 服务器响应成功 / Server responds successfully | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HealthCheckResponse health_check_api_v1_health_check_get_0()
检查服务器是否正确响应请求 / Check if the server responds to requests correctly
[中文] ### 用途说明: - 检查服务器是否正确响应请求。 ### 参数说明: - 无参数。 ### 返回结果: - status: 服务器状态,正常为 ok。 # [English] ### Purpose: - Check if the server responds to requests correctly. ### Parameter Description: - No parameters. ### Return Result: - status: Server status, normal is ok.
- Bearer Authentication (bearer):
from __future__ import print_function
import time
import tikhub_sdk_v2
from tikhub_sdk_v2.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = tikhub_sdk_v2.Configuration(
host = "http://localhost"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearer
configuration = tikhub_sdk_v2.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with tikhub_sdk_v2.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = tikhub_sdk_v2.HealthCheckApi(api_client)
try:
# 检查服务器是否正确响应请求 / Check if the server responds to requests correctly
api_response = api_instance.health_check_api_v1_health_check_get_0()
pprint(api_response)
except ApiException as e:
print("Exception when calling HealthCheckApi->health_check_api_v1_health_check_get_0: %s\n" % e)This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | 服务器响应成功 / Server responds successfully | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]