Skip to content

Latest commit

 

History

History
73 lines (47 loc) · 1.75 KB

File metadata and controls

73 lines (47 loc) · 1.75 KB

flightctl.VersionApi

All URIs are relative to http://localhost

Method HTTP request Description
get_version GET /api/version

get_version

Version get_version()

Get service version.

Example

import flightctl
from flightctl.models.version import Version
from flightctl.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 = flightctl.Configuration(
    host = "http://localhost"
)


# Enter a context with an instance of the API client
with flightctl.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = flightctl.VersionApi(api_client)

    try:
        api_response = api_instance.get_version()
        print("The response of VersionApi->get_version:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling VersionApi->get_version: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Version

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
403 Forbidden -
429 Too Many Requests -
503 Service Unavailable -

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