Skip to content

Latest commit

 

History

History
206 lines (130 loc) · 5.38 KB

SecureStorageApi.md

File metadata and controls

206 lines (130 loc) · 5.38 KB

monday_code.SecureStorageApi

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

Method HTTP request Description
delete_secure_storage DELETE /secure-storage/{key}
get_secure_storage GET /secure-storage/{key}
put_secure_storage PUT /secure-storage/{key}

delete_secure_storage

delete_secure_storage(key)

Example

import monday_code
from monday_code.rest import ApiException
from pprint import pprint

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


# Enter a context with an instance of the API client
with monday_code.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = monday_code.SecureStorageApi(api_client)
    key = 'key_example' # str | 

    try:
        api_instance.delete_secure_storage(key)
    except Exception as e:
        print("Exception when calling SecureStorageApi->delete_secure_storage: %s\n" % e)

Parameters

Name Type Description Notes
key str

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 No Content -

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

get_secure_storage

JsonDataContract get_secure_storage(key)

Example

import monday_code
from monday_code.models.json_data_contract import JsonDataContract
from monday_code.rest import ApiException
from pprint import pprint

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


# Enter a context with an instance of the API client
with monday_code.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = monday_code.SecureStorageApi(api_client)
    key = 'key_example' # str | 

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

Parameters

Name Type Description Notes
key str

Return type

JsonDataContract

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -
404 -

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

put_secure_storage

bool put_secure_storage(key, json_data_contract)

Example

import monday_code
from monday_code.models.json_data_contract import JsonDataContract
from monday_code.rest import ApiException
from pprint import pprint

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


# Enter a context with an instance of the API client
with monday_code.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = monday_code.SecureStorageApi(api_client)
    key = 'key_example' # str | 
    json_data_contract = monday_code.JsonDataContract() # JsonDataContract | 

    try:
        api_response = api_instance.put_secure_storage(key, json_data_contract)
        print("The response of SecureStorageApi->put_secure_storage:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling SecureStorageApi->put_secure_storage: %s\n" % e)

Parameters

Name Type Description Notes
key str
json_data_contract JsonDataContract

Return type

bool

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 OK -

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