From 1fd82382d882ad68dbcbfca5e4c0b797be715326 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 19 May 2020 18:32:01 +0530 Subject: libeufin docs --- libeufin/api-nexus.rst | 50 ++++++++++++++++++++++---------------------------- 1 file changed, 22 insertions(+), 28 deletions(-) (limited to 'libeufin/api-nexus.rst') diff --git a/libeufin/api-nexus.rst b/libeufin/api-nexus.rst index f175c9d9..a4cc9ac7 100644 --- a/libeufin/api-nexus.rst +++ b/libeufin/api-nexus.rst @@ -16,7 +16,7 @@ be supported in the future. Users Management ---------------- -.. http:get:: /user +.. http:get:: {nexusBase}/user Get information about the current user (based on the authentication information in this request). @@ -34,7 +34,7 @@ Users Management superuser: boolean; } -.. http:post:: /users +.. http:post:: {nexusBase}/users Create a new user. Only a superuser can call this API. @@ -60,14 +60,14 @@ Users Management } -.. http:get:: /users +.. http:get:: {nexusBase}/users Return list of users. Bank Account Management ----------------------- -.. http:get:: /bank-accounts +.. http:get:: {nexusBase}/bank-accounts **Response:** @@ -87,29 +87,15 @@ Bank Account Management holder: string; } -.. http:post:: /bank-accounts/prepared-payments/submit +.. http:post:: {nexusBase}/bank-accounts/{acctid}/prepared-payments/{pmtid}/submit Ask nexus to submit one prepare payment at the bank. - **Request:** - - .. ts:def:: SubmitPayment - - interface SubmitPayment { - // Unique identifier of the (previously) prepared payment - // to submit at the bank. - uuid: string; - - // Specify the bank connectionto use for the submission. - connection?: string; - } - - :status 404 Not Found: the unique identifier **or** the bank connection could not be found in the system -.. http:get:: /bank-accounts//prepared-payments/$uuid +.. http:get:: {nexus}/bank-accounts/{my-acct}/prepared-payments/{uuid} Ask the status of payment ``$uuid``. @@ -147,7 +133,7 @@ Bank Account Management preparationDate: string; } -.. http:post:: /bank-accounts//prepared-payments +.. http:post:: {nexusBase}/bank-accounts/{my-acct}/prepared-payments Ask nexus to prepare instructions for a new payment. Note that ``my-acct`` is the bank account that will be @@ -182,7 +168,7 @@ Bank Account Management uuid: string; } -.. http:post:: /bank-accounts/collected-transactions +.. http:post:: {nexus}/bank-accounts/{acctid}/download-transactions Nexus will download bank transactions using the given connection. @@ -204,7 +190,7 @@ Bank Account Management end: string; } -.. http:get:: /bank-accounts//collected-transactions +.. http:get:: /bank-accounts//transactions Shows which transactions are stored locally at nexus. @@ -247,7 +233,7 @@ Bank Account Management Bank Connections ---------------- +---------------- Bank connections connect the local LibEuFin bank account to the real bank. @@ -306,7 +292,7 @@ to the real bank. the requesting user. -.. http:post:: /bank-connections +.. http:post:: {nexusBase}/bank-connections List available bank connections. @@ -317,17 +303,25 @@ EBICS-specific APIs The following endpoints are only available for EBICS bank connections. They are namespaced under the ``/ebics/`` sub-resource. -.. http:post:: /bank-connections//ebics/download/ +.. http:post:: {nexusBase}/bank-connections//ebics/download/{msg} + + .. warning:: + + Use with care. Typically only necessary for testing and debugging. - Perform an EBICS download transaction of type ``msg``. This request will not affect any bank account or other state in the nexus database. It will just make a request to the bank and return the answer. -.. http:post:: /bank-connections//ebics/upload/ +.. http:post:: {nexusBase}/bank-connections//ebics/upload/{msg} + + .. warning:: + + Use with care. Typically only necessary for testing and debugging. Perform an EBICS upload transaction of type ``msg``. This request will not affect any bank account or other state in the nexus database. It will just make a request to the bank and return the answer. + -- cgit v1.2.3