From 49d79033b4af35526729a301f2f00f3867c3085b Mon Sep 17 00:00:00 2001 From: Erik Kristofer Anderson Date: Fri, 30 Jul 2021 13:17:38 -0500 Subject: [PATCH] update api output (For issue #782) Updated the example API output for "Getting information about the project" in the documentation. --- docs/api.rst | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/docs/api.rst b/docs/api.rst index a0560b73..93ca36e9 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -85,24 +85,14 @@ Getting information about the project:: $ curl --basic -u demo:demo https://ihatemoney.org/api/projects/demo { + "id": "demo", "name": "demonstration", "contact_email": "demo@notmyidea.org", - "password": "demo", - "id": "demo", - "active_members": [{"activated": true, "weight": 1, "id": 31, "name": "Arnaud"}, - {"activated": true, "weight": 1, "id": 32, "name": "Alexis"}, - {"activated": true, "weight": 1, "id": 33, "name": "Olivier"}, - {"activated": true, "weight": 1, "id": 34, "name": "Fred"}], - "members": [{"activated": true, "weight": 1, "id": 31, "name": "Arnaud"}, - {"activated": true, "weight": 1, "id": 32, "name": "Alexis"}, - {"activated": true, "weight": 1, "id": 33, "name": "Olivier"}, - {"activated": true, "weight": 1, "id": 34, "name": "Fred"}], - "balance": { - "31": 6.0, - "32": 6.0 - "33": -6.0 - "34": -6.0 - } + "members": [{"id": 11515, "name": "f", "weight": 1.0, "activated": true, "balance": 0}, + {"id": 11531, "name": "g", "weight": 1.0, "activated": true, "balance": 0}, + {"id": 11532, "name": "peter", "weight": 1.0, "activated": true, "balance": 5.0}, + {"id": 11558, "name": "Monkey", "weight": 1.0, "activated": true, "balance": 0}, + {"id": 11559, "name": "GG", "weight": 1.0, "activated": true, "balance": -5.0}] }