aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst2
-rwxr-xr-xbudget/migrations/env.py2
-rw-r--r--docs/api.rst8
3 files changed, 6 insertions, 6 deletions
diff --git a/README.rst b/README.rst
index 155302a..5794131 100644
--- a/README.rst
+++ b/README.rst
@@ -59,7 +59,7 @@ How about the REST API?
=======================
Yep, you're right, there is a REST API with this. Head to the `api
-documentation <http://readthedocs.org/docs/ihatemoney/en/latest/api.html>`_ to know more.
+documentation <https://ihatemoney.readthedocs.io/en/latest/api.html>`_ to know more.
How to contribute
=================
diff --git a/budget/migrations/env.py b/budget/migrations/env.py
index cef89d2..e2f9a28 100755
--- a/budget/migrations/env.py
+++ b/budget/migrations/env.py
@@ -55,7 +55,7 @@ def run_migrations_online():
# This callback is used to prevent an auto-migration from being generated
# when there are no changes to the schema.
- # reference: http://alembic.readthedocs.org/en/latest/cookbook.html
+ # reference: https://alembic.readthedocs.io/en/latest/cookbook.html
def process_revision_directives(context, revision, directives):
if getattr(config.cmd_opts, 'autogenerate', False):
script = directives[0]
diff --git a/docs/api.rst b/docs/api.rst
index ce5df71..0f8d784 100644
--- a/docs/api.rst
+++ b/docs/api.rst
@@ -135,17 +135,17 @@ You can get the list of bills by doing a `GET` on `/api/projects/<id>/bills` ::
Add a bill with a `POST` query on `/api/projects/<id>/bills`. you need the
following params:
-* `date`: the date of the bill. (yy-mm-dd)
+* `date`: the date of the bill; defaults to current date if not provided. (yy-mm-dd)
* `what`: what have been payed
* `payer`: by who ? (id)
-* `payed_for`: list of ids
+* `payed_for`: for who ? (id, repeat the parameter to set multiple id)
* `amount`: amount payed
Returns the id of the created bill ::
$ curl --basic -u demo:demo -X POST\
http://ihatemoney.notmyidea.org/api/projects/demo/bills\
- -d "date=2011-09-10&what=raclette&payer=31&payed_for=31&amount=200"
+ -d "date=2011-09-10&what=raclette&payer=31&payed_for=31&payed_for=35&amount=200"
80
You can also `PUT` a new version of the bill at
@@ -153,7 +153,7 @@ You can also `PUT` a new version of the bill at
$ curl --basic -u demo:demo -X PUT\
http://ihatemoney.notmyidea.org/api/projects/demo/bills/80\
- -d "date=2011-09-10&what=raclette&payer=31&payed_for=31&amount=250"
+ -d "date=2011-09-10&what=raclette&payer=31&payed_for=31&payed_for=35&amount=250"
80
And you can of course `DELETE` them at `/api/projects/<id>/bills/<bill-id>`::