taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

commit f2781e14caa3b8bac7ee387cd47a0da00906c0af
parent 3616296242138e6be03ae44bb9fa221af36f9063
Author: MS <ms@taler.net>
Date:   Fri, 14 May 2021 12:12:15 +0200

fix Nexus API

Diffstat:
Mlibeufin/api-nexus.rst | 58++++++++++++++++++++++++++--------------------------------
1 file changed, 26 insertions(+), 32 deletions(-)

diff --git a/libeufin/api-nexus.rst b/libeufin/api-nexus.rst @@ -500,8 +500,32 @@ Scheduling API .. http:get:: {nexusBase}/bank-accounts/{acctid}/schedule/{taskId} - This call returns the information related to the task associated - to ``taskId``. + **Response** + + .. ts:def:: NexusTask + + // This object is a mere reflection of + // what the Nexus database keeps to implement + // the scheduling feature. + + interface NexusTask { + // FIXME: document all. + resourceType: string; + resourceId: string; + taskName: string; + taskType: string; + taskCronSpec: string; + taskParams: string; + nextScheduledExecutionSec: number; + prevScheduledExecutionSec: number; + } + + +.. http:delete:: {nexusBase}/bank-accounts/{acctid}/schedule/{taskId} + + This call deletes the task associated to ``taskId``. + +.. http:get:: {nexusBase}/bank-accounts/{acctid}/schedule **Response** @@ -525,36 +549,6 @@ Scheduling API } -.. http:delete:: {nexusBase}/bank-accounts/{acctid}/schedule/{taskId} - - This call deletes the task associated to ``taskId``. - -.. http:get:: {nexusBase}/bank-accounts/{acctid}/schedule - - This call returns a list of all the scheduled tasks, under one bank account. - The list is wrapped into a ``tasks`` object, and contains elements of `NexusTask`. - - **Response** - - .. ts:def:: NexusTask - - // This object is a mere reflection of - // what the Nexus database keeps to implement - // the scheduling feature. - - interface NexusTask { - // FIXME: document all. - resourceType: string; - resourceId: string; - taskName: string; - taskType: string; - taskCronSpec: string; - taskParams: string; - nextScheduledExecutionSec: number; - prevScheduledExecutionSec: number; - } - - Bank Connections ----------------