Skip to content

Latest commit

 

History

History
132 lines (84 loc) · 3.15 KB

File metadata and controls

132 lines (84 loc) · 3.15 KB

dat_client.DefaultApi

All URIs are relative to http://localhost

Method HTTP request Description
root_get GET / Root
update_admin_admin_post POST /admin/ Update Admin

root_get

object root_get()

Root

Example

import dat_client
from dat_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 = dat_client.Configuration(
    host = "http://localhost"
)


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

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

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successful Response -

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

update_admin_admin_post

object update_admin_admin_post()

Update Admin

Example

import dat_client
from dat_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 = dat_client.Configuration(
    host = "http://localhost"
)


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

    try:
        # Update Admin
        api_response = api_instance.update_admin_admin_post()
        print("The response of DefaultApi->update_admin_admin_post:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->update_admin_admin_post: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

object

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 Successful Response -

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