Skip to content

Latest commit

 

History

History
206 lines (130 loc) · 5.73 KB

File metadata and controls

206 lines (130 loc) · 5.73 KB

dappserver_server_sdk.AuthApi

All URIs are relative to http://localhost:36911

Method HTTP request Description
create POST /auth/lethean/create
delete POST /auth/lethean/delete
login POST /auth/lethean/login

create

CreateAccountResponseDTO create(create_account_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.create_account_dto import CreateAccountDTO
from dappserver_server_sdk.models.create_account_response_dto import CreateAccountResponseDTO
from dappserver_server_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:36911
# See configuration.py for a list of all supported configuration parameters.
configuration = dappserver_server_sdk.Configuration(
    host = "http://localhost:36911"
)


# Enter a context with an instance of the API client
with dappserver_server_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dappserver_server_sdk.AuthApi(api_client)
    create_account_dto = dappserver_server_sdk.CreateAccountDTO() # CreateAccountDTO | 

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

Parameters

Name Type Description Notes
create_account_dto CreateAccountDTO

Return type

CreateAccountResponseDTO

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

delete

delete(delete_account_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.delete_account_dto import DeleteAccountDTO
from dappserver_server_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:36911
# See configuration.py for a list of all supported configuration parameters.
configuration = dappserver_server_sdk.Configuration(
    host = "http://localhost:36911"
)


# Enter a context with an instance of the API client
with dappserver_server_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dappserver_server_sdk.AuthApi(api_client)
    delete_account_dto = dappserver_server_sdk.DeleteAccountDTO() # DeleteAccountDTO | 

    try:
        api_instance.delete(delete_account_dto)
    except Exception as e:
        print("Exception when calling AuthApi->delete: %s\n" % e)

Parameters

Name Type Description Notes
delete_account_dto DeleteAccountDTO

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

login

EncryptedResponseDTO login(encrypted_request_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.encrypted_request_dto import EncryptedRequestDTO
from dappserver_server_sdk.models.encrypted_response_dto import EncryptedResponseDTO
from dappserver_server_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:36911
# See configuration.py for a list of all supported configuration parameters.
configuration = dappserver_server_sdk.Configuration(
    host = "http://localhost:36911"
)


# Enter a context with an instance of the API client
with dappserver_server_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = dappserver_server_sdk.AuthApi(api_client)
    encrypted_request_dto = dappserver_server_sdk.EncryptedRequestDTO() # EncryptedRequestDTO | 

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

Parameters

Name Type Description Notes
encrypted_request_dto EncryptedRequestDTO

Return type

EncryptedResponseDTO

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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