Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Latest commit

 

History

History
176 lines (121 loc) · 4.69 KB

InfoServiceApi.md

File metadata and controls

176 lines (121 loc) · 4.69 KB

openapi_client.InfoServiceApi

All URIs are relative to http://localhost

Method HTTP request Description
get_info GET /api/v1/info
get_user_info GET /api/v1/userinfo
get_version GET /api/v1/version

get_info

V1alpha1InfoResponse get_info()

Example

from __future__ import print_function
import time
import openapi_client
from openapi_client.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 = openapi_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.InfoServiceApi(api_client)
    
    try:
        api_response = api_instance.get_info()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling InfoServiceApi->get_info: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V1alpha1InfoResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A successful response. -

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

get_user_info

V1alpha1GetUserInfoResponse get_user_info()

Example

from __future__ import print_function
import time
import openapi_client
from openapi_client.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 = openapi_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.InfoServiceApi(api_client)
    
    try:
        api_response = api_instance.get_user_info()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling InfoServiceApi->get_user_info: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V1alpha1GetUserInfoResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A successful response. -

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

get_version

V1alpha1Version get_version()

Example

from __future__ import print_function
import time
import openapi_client
from openapi_client.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 = openapi_client.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.InfoServiceApi(api_client)
    
    try:
        api_response = api_instance.get_version()
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling InfoServiceApi->get_version: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

V1alpha1Version

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 A successful response. -

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