kappa_sdk.RestAPI#

class kappa_sdk.RestAPI(configuration, oath_service=None)[source]#

A REST API facade for KAPPA Automate.

Note

Should not be instantiated directly.

Attributes

RestAPI.headers

Gets the list of REST API headers that will be used to perform POST, PUT and DELETE operations.

RestAPI.request_headers

Gets the list of REST API headers that will be used to perform GET operations.

Methods

RestAPI.async_get_list(service, request_urls)

Performs a series of GET requests.

RestAPI.delete(service, request_url[, dto])

Performs a DELETE request.

RestAPI.get(service, request_url)

Performs a GET request.

RestAPI.post(service, request_url[, dto])

Performs a POST request.

RestAPI.put(service, request_url, dto)

Performs a PUT request.

RestAPI.upload(service, request_url, file_path)

Performs a file upload via POST request.

Parameters:
  • configuration (Configuration)

  • oath_service (OAuthService | None)