gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 01/08: Comments.


From: gnunet
Subject: [libeufin] 01/08: Comments.
Date: Fri, 08 May 2020 20:04:45 +0200

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 1985072fca834a5d9ef8b4823526fe9288ade237
Author: Marcello Stanisci <address@hidden>
AuthorDate: Fri May 8 17:18:06 2020 +0200

    Comments.
---
 nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt | 37 ++++++++++++++++++++--
 1 file changed, 35 insertions(+), 2 deletions(-)

diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt 
b/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt
index e5d6cfe..c8fb73a 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt
@@ -135,42 +135,75 @@ fun main() {
 
         routing {
 
-            /** GENERAL / DEBUG ENDPOINTS */
-
             get("/") {
                 call.respondText("Hello by nexus!\n")
                 return@get
             }
+            /**
+             * Shows information about the requesting user.
+             */
             get("/user") {
                 return@get
             }
+            /**
+             * Add a new ordinary user in the system (requires "admin" 
privileges)
+             */
             post("/users") {
                 return@post
             }
+            /**
+             * Shows the bank accounts belonging to the requesting user.
+             */
             get("/bank-accounts") {
                 return@get
             }
+            /**
+             * Submit one particular payment at the bank.
+             */
             post("/bank-accounts/{accountid}/prepared-payments/submit") {
                 return@post
             }
+            /**
+             * Shows information about one particular prepared payment.
+             */
             get("/bank-accounts/{accountid}/prepared-payments/{uuid}") {
                 return@get
             }
+            /**
+             * Adds a new prepared payment.
+             */
             post("/bank-accounts/{accountid}/prepared-payments") {
                 return@post
             }
+            /**
+             * Downloads new transactions from the bank.
+             */
             post("/bank-accounts/{accountid}/collected-transactions") {
                 return@post
             }
+            /**
+             * Queries list of transactions ALREADY downloaded from the bank.
+             */
             get("/bank-accounts/{accountid}/collected-transactions") {
                 return@post
             }
+            /**
+             * Adds a new bank transport.
+             */
             post("/bank-transports") {
                 return@post
             }
+            /**
+             * Sends to the bank a message "MSG" according to the transport
+             * "transportName".  Does not alterate any DB table.
+             */
             post("/bank-transports/{transportName}/send{MSG}") {
                 return@post
             }
+            /**
+             * Sends the bank a message "MSG" according to the transport
+             * "transportName".  DOES alterate DB tables.
+             */
             post("/bank-transports/{transportName}/sync{MSG}") {
                 return@post
             }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]