rxfoundry.clients.swifty_api.VersionApi
All URIs are relative to /api
Method |
HTTP request |
Description |
|---|---|---|
get_api_version |
GET /swifty/1/version |
Get the api version |
get_api_version
Version get_api_version()
Get the api version
Example
import rxfoundry.clients.swifty_api
from rxfoundry.clients.swifty_api.models.version import Version
from rxfoundry.clients.swifty_api.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to /api
# See configuration.py for a list of all supported configuration parameters.
configuration = rxfoundry.clients.swifty_api.Configuration(
host = "/api"
)
# Enter a context with an instance of the API client
with rxfoundry.clients.swifty_api.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = rxfoundry.clients.swifty_api.VersionApi(api_client)
try:
# Get the api version
api_response = api_instance.get_api_version()
print("The response of VersionApi->get_api_version:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling VersionApi->get_api_version: %s\n" % e)
Parameters
This endpoint does not need any parameter.
Return type
Version
HTTP request headers
Content-Type: Not defined
Accept: application/json
HTTP response details
Status code |
Description |
Response headers |
|---|---|---|
200 |
The api version |
- |
404 |
No version found |
- |
[Back to top] [Back to API list] [Back to Model list] [Back to README]