From 4d2b17ca203c389b4ed678007377a0fd93b889eb Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Wed, 18 Aug 2021 14:22:32 -0500 Subject: Documented /api/info --- apidoc/api_data.json | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'apidoc/api_data.json') diff --git a/apidoc/api_data.json b/apidoc/api_data.json index 180cbe16..5bab3ee7 100644 --- a/apidoc/api_data.json +++ b/apidoc/api_data.json @@ -374,6 +374,43 @@ "filename": "routes/admin.js", "groupTitle": "Admin" }, + { + "type": "get", + "url": "/info", + "title": "Request server information", + "name": "GetInfo", + "group": "Info", + "success": { + "fields": { + "Success 200": [ + { + "group": "Success 200", + "type": "Object", + "optional": false, + "field": "fx", + "description": "

Exchange rates relative to USD - fx.CUR is the value of one CUR in USD.

" + }, + { + "group": "Success 200", + "type": "String[]", + "optional": false, + "field": "networks", + "description": "

Array of supported networks; possible values are "bitcoin", "liquid" and "lightning".

" + }, + { + "group": "Success 200", + "type": "String", + "optional": false, + "field": "clientVersion", + "description": "

the current git commit of the ui

" + } + ] + } + }, + "version": "0.0.0", + "filename": "routes/info.js", + "groupTitle": "Info" + }, { "type": "post", "url": "/grant", -- cgit v1.2.3