REST API - Config

iceprod.rest.handlers.config.setup(handler_cfg)[source]

Setup method for Config REST API.

Parameters:

handler_cfg (dict) – args to pass to the route

Returns:

routes, database, indexes

Return type:

dict

class iceprod.rest.handlers.config.ConfigHandler(*args, **kwargs)[source]

Handle config requests.

async get(dataset_id)[source]

Get a config.

Parameters:

dataset_id (str) – the dataset id of the config

Returns:

config

Return type:

dict

async put(dataset_id)[source]

Set a config.

Body should contain the config.

Parameters:

dataset_id (str) – the dataset id of the config

Returns:

empty dict

Return type:

dict