diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2018-07-16 22:58:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-16 22:58:48 +0200 |
| commit | 1d0880f3cb39463483a4241197d8eb0d817dffc6 (patch) | |
| tree | ffb843f74d1d1337a6e66d92b5deb21c0dd9c77e /docs | |
| parent | c3f8ddd274a40b164b5fceeab44c1c26cf053b04 (diff) | |
| parent | f9cc4e56230ce04f58d457bfc8f468d56e53cb36 (diff) | |
| download | ihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.zip ihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.tar.gz ihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.tar.bz2 | |
Merge branch 'master' into almet/fix-supervisord-template
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api.rst | 22 | ||||
| -rw-r--r-- | docs/installation.rst | 5 |
2 files changed, 25 insertions, 2 deletions
diff --git a/docs/api.rst b/docs/api.rst index b82c6f3..0ae4214 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -164,3 +164,25 @@ And you can of course `DELETE` them at `/api/projects/<id>/bills/<bill-id>`:: $ curl --basic -u demo:demo -X DELETE\ https://ihatemoney.org/api/projects/demo/bills/80\ "OK" + + +Statistics +---------- + +You can get some project stats with a `GET` on `/api/projects/<id>/statistics`:: + + $ curl --basic -u demo:demo https://ihatemoney.org/api/projects/demo/statistics + [ + { + "balance": 12.5, + "member": {"activated": True, "id": 1, "name": "alexis", "weight": 1.0}, + "paid": 25.0, + "spent": 12.5 + }, + { + "balance": -12.5, + "member": {"activated": True, "id": 2, "name": "fred", "weight": 1.0}, + "paid": 0, + "spent": 12.5 + } + ] diff --git a/docs/installation.rst b/docs/installation.rst index 0c3cfac..e7d586e 100644 --- a/docs/installation.rst +++ b/docs/installation.rst @@ -154,9 +154,10 @@ A volume can also be specified to persist the default database file:: docker run -d -p 8000:8000 -v /host/path/to/database:/database ihatemoney -The following gunicorn parameters are also available:: +Additional gunicorn parameters can be passed using the docker ``CMD`` parameter. +For example, use the following command to add more gunicorn workers:: - GUNICORN_NUM_WORKERS (default: 3) + docker run -d -p 8000:8000 ihatemoney -w 3 Configuration ============= |
