From e705be932626c8b2e51f8217439b585f960a8caf Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Fri, 16 Apr 2021 11:56:23 +0000 Subject: [PATCH] update doc for getVBalance now moved to API --- docu/community-server.api.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/docu/community-server.api.md b/docu/community-server.api.md index c4f9902f8..e10051786 100644 --- a/docu/community-server.api.md +++ b/docu/community-server.api.md @@ -12,15 +12,20 @@ This document describes the community server API. The community server is writte Returns the current account balance ### Request -`GET http://localhost/state-balances/ajaxGetBalance/-127182` +`GET http://localhost/api/getBalance/` ### Response Assuming: session is valid +Session will be searched in php session and GRADIDO_LOGIN cookie. +Additional session can be provided as GET-Parameter +`GET http://localhost/api/getBalance/-127182` ```json { "state":"success", - "balance":174500 + "balance":15906078, + "decay":15873851, + "decay_date":"2021-04-16T11:47:21+00:00" } ```