From c1f3909466600345488557e2cee9ac638a4a2a31 Mon Sep 17 00:00:00 2001 From: MS Date: Wed, 13 Jan 2021 11:01:24 +0100 Subject: use Any on unknown types --- libeufin/api-nexus.rst | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/libeufin/api-nexus.rst b/libeufin/api-nexus.rst index 64fc48e5..0fd08743 100644 --- a/libeufin/api-nexus.rst +++ b/libeufin/api-nexus.rst @@ -675,13 +675,18 @@ to the real bank. Facades ------- +.. http:get:: /facades/{fcid} + + **Response:** A `FacadeShowInfo` pointed to by ``fcid``. + + .. http:get:: /facades List available facades that belong to the requesting user. **Response:** A list of the following elements: - .. code-block:: ts +.. ts:def:: FacadeShowInfo interface FacadeShowInfo { @@ -694,17 +699,18 @@ Facades // Bas URL of the facade. baseUrl: string; + + // details depending on the facade type. + config: any; } .. http:post:: {nexus}/facades - Create a new facade; it requires a `FacadeInfo` as the request's body. - -.. http:get:: {nexus}/facades/${fcid} + Create a new facade. - Get details about a facade. + **Request:** - .. ts:def:: FacadeInfo + .. code-block:: ts interface FacadeInfo { // Name of the facade, same as the "fcid" parameter. -- cgit v1.2.3