[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: Remove not-so-useful API endpoint.
From: |
gnunet |
Subject: |
[libeufin] branch master updated: Remove not-so-useful API endpoint. |
Date: |
Mon, 18 May 2020 10:52:26 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 06cba36 Remove not-so-useful API endpoint.
06cba36 is described below
commit 06cba3669ba42feecc655b31e799e6a654b8f638
Author: MS <address@hidden>
AuthorDate: Mon May 18 10:51:45 2020 +0200
Remove not-so-useful API endpoint.
---
.../src/main/kotlin/tech/libeufin/sandbox/Main.kt | 27 ++++------------------
1 file changed, 4 insertions(+), 23 deletions(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index ca1893e..a1d1ae5 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -191,7 +191,7 @@ fun main() {
return@post
}
/**
- * Shows a Ebics subscriber's details.
+ * Shows all the Ebics subscribers' details.
*/
get("/admin/ebics/subscribers") {
var ret = AdminGetSubscribers()
@@ -209,28 +209,10 @@ fun main() {
call.respond(ret)
return@get
}
- /**
- * Shows details about ONE Ebics host
- */
- get("/ebics/hosts/{id}") {
- val resp = transaction {
- val host = EbicsHostEntity.find { EbicsHostsTable.hostID
eq call.parameters["id"]!! }.firstOrNull()
- if (host == null) null
- else EbicsHostResponse(
- host.hostId,
- host.ebicsVersion
- )
- }
- if (resp == null) call.respond(
- HttpStatusCode.NotFound,
- SandboxError(HttpStatusCode.NotFound,"host not found")
- )
- else call.respond(resp)
- }
/**
* Creates a new EBICS host.
*/
- post("/admin/ebics-host") {
+ post("/admin/ebics/host") {
val req = call.receive<EbicsHostCreateRequest>()
val pairA = CryptoUtil.generateRsaKeyPair(2048)
val pairB = CryptoUtil.generateRsaKeyPair(2048)
@@ -254,9 +236,9 @@ fun main() {
return@post
}
/**
- * Show ONLY names of all the Ebics hosts
+ * Show the names of all the Ebics hosts
*/
- get("/ebics/hosts") {
+ get("/admin/ebics/hosts") {
val ebicsHosts = transaction {
EbicsHostEntity.all().map { it.hostId }
}
@@ -268,7 +250,6 @@ fun main() {
post("/ebicsweb") {
call.ebicsweb()
}
-
}
}
LOGGER.info("Up and running")
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: Remove not-so-useful API endpoint.,
gnunet <=