deseasion.backend.resources.tasks module
- class deseasion.backend.resources.tasks.ProjectTaskListAPI
Bases:
Resource- endpoint = 'projecttasklistapi'
- get(project_id)
Return the list of tasks for the project
- Parameters:
project_id (int) – The id of the project.
- Query int limit:
Number of tasks to return.
- Query int offset:
Number of tasks to skip (e.g., a value of
25means the first 25 tasks will not be returned).- Reqheader Authorization:
JSON Web Token with Bearer scheme (
Authorization: Bearer <token>).- Status 403:
The user is not allowed to access the project.
- Status 404:
The project doesn’t exist.
- get_tasks_list_schemas(project_id, limit=None, offset=None)
Returns the list of tasks concerning the data of a project
- mediatypes()
- methods: t.ClassVar[t.Collection[str] | None] = {'GET'}
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.
- class deseasion.backend.resources.tasks.TaskAPI
Bases:
Resource- delete(task_id)
Revoke the task.
- Parameters:
task_id (int) – The id of the task.
- Reqheader Authorization:
JSON Web Token with Bearer scheme (
Authorization: Bearer <token>).- Status 403:
The user is not allowed to access the project for this task.
- Status 404:
The task doesn’t exist.
- endpoint = 'taskapi'
- get(task_id)
Return the details of the task.
- Parameters:
task_id (int) – The id of the task.
- Reqheader Authorization:
JSON Web Token with Bearer scheme (
Authorization: Bearer <token>).- Status 403:
The user is not allowed to access the project for this task.
- Status 404:
The task doesn’t exist.
- mediatypes()
- methods: t.ClassVar[t.Collection[str] | None] = {'DELETE', 'GET'}
The methods this view is registered for. Uses the same default (
["GET", "HEAD", "OPTIONS"]) asrouteandadd_url_ruleby default.