From f682a42209df0ef3216be1f7ff9fff03f14bb0c7 Mon Sep 17 00:00:00 2001 From: Dario Rekowski on RockPI Date: Fri, 16 Apr 2021 14:01:03 +0000 Subject: [PATCH] update docu for list transactions --- docu/community-server.api.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docu/community-server.api.md b/docu/community-server.api.md index e10051786..fa34ded0d 100644 --- a/docu/community-server.api.md +++ b/docu/community-server.api.md @@ -35,8 +35,20 @@ Additional session can be provided as GET-Parameter List all transactions for logged in user ### Request -`GET http://localhost/state-balances/ajaxListTransactions/-127182/[DESC]` -(The `DESC` part is optional symbolized by []) +`GET http://localhost/api/ajaxListTransactions/[1]/[25]/[DESC]/[session_id]` +Parts symbolized by [] are optional + - first parameter (1) is page for paging + - second parameter (25) is count for paging + - third parameter is ordering of resulting array, default is ASC + - fourth parameter is session_id (session will be searched in php session and GRADIDO_LOGIN cookie and if not found use this ) + +#### Paging +With count you say how many entrys you like to have in the result. +With page you say on which page you are. +For example 50 transactions are in db. +With 1/25 you get the first 25 transactions (1-25) +With 2/20 you get the second 20 transactions (21-40) + ### Response Assuming: session is valid