Skip to content

Latest commit

 

History

History
328 lines (204 loc) · 8.69 KB

File metadata and controls

328 lines (204 loc) · 8.69 KB

dappserver_server_sdk.ProcessApi

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

Method HTTP request Description
add_process POST /process/add
kill_process POST /process/kill
run_process POST /process/run
start_process POST /process/start
stop_process POST /process/stop

add_process

add_process(process_add_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.process_add_dto import ProcessAddDTO
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.ProcessApi(api_client)
    process_add_dto = dappserver_server_sdk.ProcessAddDTO() # ProcessAddDTO | 

    try:
        api_instance.add_process(process_add_dto)
    except Exception as e:
        print("Exception when calling ProcessApi->add_process: %s\n" % e)

Parameters

Name Type Description Notes
process_add_dto ProcessAddDTO

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]

kill_process

kill_process(process_kill_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.process_kill_dto import ProcessKillDTO
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.ProcessApi(api_client)
    process_kill_dto = dappserver_server_sdk.ProcessKillDTO() # ProcessKillDTO | 

    try:
        api_instance.kill_process(process_kill_dto)
    except Exception as e:
        print("Exception when calling ProcessApi->kill_process: %s\n" % e)

Parameters

Name Type Description Notes
process_kill_dto ProcessKillDTO

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]

run_process

run_process(process_run_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.process_run_dto import ProcessRunDTO
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.ProcessApi(api_client)
    process_run_dto = dappserver_server_sdk.ProcessRunDTO() # ProcessRunDTO | 

    try:
        api_instance.run_process(process_run_dto)
    except Exception as e:
        print("Exception when calling ProcessApi->run_process: %s\n" % e)

Parameters

Name Type Description Notes
process_run_dto ProcessRunDTO

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]

start_process

start_process(process_start_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.process_start_dto import ProcessStartDTO
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.ProcessApi(api_client)
    process_start_dto = dappserver_server_sdk.ProcessStartDTO() # ProcessStartDTO | 

    try:
        api_instance.start_process(process_start_dto)
    except Exception as e:
        print("Exception when calling ProcessApi->start_process: %s\n" % e)

Parameters

Name Type Description Notes
process_start_dto ProcessStartDTO

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]

stop_process

stop_process(process_stop_dto)

Example

import dappserver_server_sdk
from dappserver_server_sdk.models.process_stop_dto import ProcessStopDTO
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.ProcessApi(api_client)
    process_stop_dto = dappserver_server_sdk.ProcessStopDTO() # ProcessStopDTO | 

    try:
        api_instance.stop_process(process_stop_dto)
    except Exception as e:
        print("Exception when calling ProcessApi->stop_process: %s\n" % e)

Parameters

Name Type Description Notes
process_stop_dto ProcessStopDTO

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]