summaryrefslogtreecommitdiffstats
path: root/tests/task.json
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-12-17 12:26:28 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-06-02 12:32:36 +0200
commit96b9bb865c4d4dbd2df8e5d07e9dbf83dbc25d2c (patch)
treed6bf90a2090f89fb94326d89704b9006f923a6b7 /tests/task.json
parent6a0fcf96700a7b640114ea40cb64e3c3a5213a68 (diff)
#942 Add /run/task to API REST
This patch adds a new command to the REST API to run tasks. A task (tarea) is composed of procedures (procedimientos), each procedure is composed of commands (acciones) that are represented through legacy sockHidra parameters in the database. This results in iterating over the task (tareas_acciones) table in the database to fetch the list of procedures (procedimientos). Then, this iterates over the list commands that compose a procedures represented through procedimientos_acciones table. Finally, this builds and sends the sockHidra legacy message for the client. This patch includes an implementation of the Linux linked list.
Diffstat (limited to 'tests/task.json')
-rw-r--r--tests/task.json1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/task.json b/tests/task.json
new file mode 100644
index 0000000..fe9d19c
--- /dev/null
+++ b/tests/task.json
@@ -0,0 +1 @@
+{ "task" : "13" }