libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 2152dd260b5e0e188ca806c67858fe5b3f304ec7
parent 6d6ce026a37d8f88ceb3370efb40e86d4d26d8b9
Author: Florian Dold <florian.dold@gmail.com>
Date:   Tue, 28 Jan 2020 15:36:02 +0100

template for new restore-backup API endpoint

Diffstat:
Mnexus/src/main/kotlin/Main.kt | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/nexus/src/main/kotlin/Main.kt b/nexus/src/main/kotlin/Main.kt @@ -227,6 +227,13 @@ fun main() { return@post } + post("/ebics/subscribers/{id}/restore-backup") { + // Creates a *new* customer with nexus-internal identifier "id" + // and imports the backup into it. + // This endpoint *fails* if a subscriber with the same nexus-internal id + // already exists. + } + get("/ebics/subscribers/{id}/sendHtd") { val id = expectId(call.parameters["id"]) val subscriberData = transaction {