kepler.api.resource module¶
The module contains the functionality for REST API calls for resources.
-
class
kepler.api.resource.
AddResourceParams
¶ Bases:
kepler.api.api_util.ApiParamsBase
The parameters class for REST API call
add_resource
.-
description_en
= The description of the resource in English.¶
-
description_fi
= The description of the resource in Finnish.¶
-
name_en
= The name of the resource in English¶
-
name_fi
= The name of the resource in Finnish¶
-
statuses
= The list of statuses for the resource.¶
-
-
class
kepler.api.resource.
DeleteResourceParams
¶ Bases:
kepler.api.api_util.ApiParamsBase
The parameter class for REST API class
delete_resource
.-
resource_id
= The ID of the resource that will be deleted.¶
-
-
class
kepler.api.resource.
EditResourceParams
¶ Bases:
kepler.api.api_util.ApiParamsBase
The parameters class for REST API call
edit_resource
.-
description_en
= The description of the resource in English.¶
-
description_fi
= The description of the resource in Finnish.¶
-
name_en
= The name of the resource in English.¶
-
name_fi
= The name of the resource in Finnish.¶
-
resource_id
= The ID of the resource that is edited.¶
-
statuses
= The list of statuses for the resource.¶
-
-
kepler.api.resource.
add_resource
(request)¶ The function implements the REST API call
add_resource
.
-
kepler.api.resource.
delete_resource
(request)¶ The function implements the REST API call
delete_resource
.
-
kepler.api.resource.
edit_resource
(request)¶ The function implements the REST API call
edit_resource
.
-
kepler.api.resource.
get_resources
(request)¶ The function implements the REST API call
get_resources
.
-
kepler.api.resource.
set_transl
(lang_id, tr_id, translation)¶ The utility function adds a translation to the database.