diff options
author | Marcello Stanisci <ms@taler.net> | 2020-05-08 15:45:06 +0200 |
---|---|---|
committer | Marcello Stanisci <ms@taler.net> | 2020-05-08 15:45:06 +0200 |
commit | 64b39297300932d181988aa00fc533c808b78208 (patch) | |
tree | 690d27191d3e6c0eb2f7159ce373f9a4f296f64a /nexus/src/main | |
parent | 4695b221dbfd4b35ff97b70dc9dd5821269ea08e (diff) | |
download | libeufin-64b39297300932d181988aa00fc533c808b78208.tar.gz libeufin-64b39297300932d181988aa00fc533c808b78208.tar.bz2 libeufin-64b39297300932d181988aa00fc533c808b78208.zip |
new API mere endpoints definition
Diffstat (limited to 'nexus/src/main')
-rw-r--r-- | nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt index ac39b371..e5d6cfe9 100644 --- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt +++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main2.kt @@ -138,9 +138,42 @@ fun main() { /** GENERAL / DEBUG ENDPOINTS */ get("/") { - call.respondText("Hello by Nexus!\n") + call.respondText("Hello by nexus!\n") return@get } + get("/user") { + return@get + } + post("/users") { + return@post + } + get("/bank-accounts") { + return@get + } + post("/bank-accounts/{accountid}/prepared-payments/submit") { + return@post + } + get("/bank-accounts/{accountid}/prepared-payments/{uuid}") { + return@get + } + post("/bank-accounts/{accountid}/prepared-payments") { + return@post + } + post("/bank-accounts/{accountid}/collected-transactions") { + return@post + } + get("/bank-accounts/{accountid}/collected-transactions") { + return@post + } + post("/bank-transports") { + return@post + } + post("/bank-transports/{transportName}/send{MSG}") { + return@post + } + post("/bank-transports/{transportName}/sync{MSG}") { + return@post + } } logger.info("Up and running") server.start(wait = true) |