All URIs are relative to http://localhost:8000
| Method | HTTP request | Description |
|---|---|---|
| health_check | GET /healthz | Health Check Handler |
| hello | GET / | Root Handler |
HealthCheckResponse health_check()
Health Check Handler
Health check endpoint.
import ksapi
from ksapi.models.health_check_response import HealthCheckResponse
from ksapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = ksapi.Configuration(
host = "http://localhost:8000"
)
# Enter a context with an instance of the API client
with ksapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ksapi.DefaultApi(api_client)
try:
# Health Check Handler
api_response = api_instance.health_check()
print("The response of DefaultApi->health_check:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->health_check: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RootResponse hello()
Root Handler
Root endpoint.
import ksapi
from ksapi.models.root_response import RootResponse
from ksapi.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = ksapi.Configuration(
host = "http://localhost:8000"
)
# Enter a context with an instance of the API client
with ksapi.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ksapi.DefaultApi(api_client)
try:
# Root Handler
api_response = api_instance.hello()
print("The response of DefaultApi->hello:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->hello: %s\n" % e)This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]