Skip to content

Latest commit

 

History

History
93 lines (64 loc) · 2.27 KB

CommonApi.md

File metadata and controls

93 lines (64 loc) · 2.27 KB

jiaozifs_client.CommonApi

All URIs are relative to http://localhost:34913/api/v1

Method HTTP request Description
get_setup_state GET /setup check if jiaozifs setup
get_version GET /version return program and runtime version

get_setup_state

SetupState get_setup_state()

check if jiaozifs setup

Example

from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = jiaozifs_client.CommonApi()

try:
    # check if jiaozifs setup
    api_response = api_instance.get_setup_state()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->get_setup_state: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

SetupState

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_version

VersionResult get_version()

return program and runtime version

Example

from __future__ import print_function
import time
import jiaozifs_client
from jiaozifs_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = jiaozifs_client.CommonApi()

try:
    # return program and runtime version
    api_response = api_instance.get_version()
    pprint(api_response)
except ApiException as e:
    print("Exception when calling CommonApi->get_version: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

VersionResult

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]