mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-29 01:42:37 +02:00
update api output (For issue #782)
Updated the example API output for "Getting information about the project" in the documentation.
This commit is contained in:
parent
8341e58589
commit
49d79033b4
1 changed files with 6 additions and 16 deletions
22
docs/api.rst
22
docs/api.rst
|
@ -85,24 +85,14 @@ Getting information about the project::
|
||||||
|
|
||||||
$ curl --basic -u demo:demo https://ihatemoney.org/api/projects/demo
|
$ curl --basic -u demo:demo https://ihatemoney.org/api/projects/demo
|
||||||
{
|
{
|
||||||
|
"id": "demo",
|
||||||
"name": "demonstration",
|
"name": "demonstration",
|
||||||
"contact_email": "demo@notmyidea.org",
|
"contact_email": "demo@notmyidea.org",
|
||||||
"password": "demo",
|
"members": [{"id": 11515, "name": "f", "weight": 1.0, "activated": true, "balance": 0},
|
||||||
"id": "demo",
|
{"id": 11531, "name": "g", "weight": 1.0, "activated": true, "balance": 0},
|
||||||
"active_members": [{"activated": true, "weight": 1, "id": 31, "name": "Arnaud"},
|
{"id": 11532, "name": "peter", "weight": 1.0, "activated": true, "balance": 5.0},
|
||||||
{"activated": true, "weight": 1, "id": 32, "name": "Alexis"},
|
{"id": 11558, "name": "Monkey", "weight": 1.0, "activated": true, "balance": 0},
|
||||||
{"activated": true, "weight": 1, "id": 33, "name": "Olivier"},
|
{"id": 11559, "name": "GG", "weight": 1.0, "activated": true, "balance": -5.0}]
|
||||||
{"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
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue