diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d69559..c15c0f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog for elabapy +## Version 0.6.1 + +* Fix create experiment/items not sending POST requests + ## Version 0.6.0 ### BREAKING CHANGE diff --git a/elabapy/Manager.py b/elabapy/Manager.py index f3d9706..9071c40 100644 --- a/elabapy/Manager.py +++ b/elabapy/Manager.py @@ -10,13 +10,13 @@ def create_experiment(self): """ Create an experiment """ - return self.send_req("experiments") + return self.send_req("experiments", verb='POST') def create_item(self, id): """ Create an item, the id is the items_types id """ - return self.send_req("items/" + str(id)) + return self.send_req("items/" + str(id), verb='POST') def get_all_experiments(self): """ diff --git a/elabapy/__init__.py b/elabapy/__init__.py index 0aa81c5..7b1e18f 100644 --- a/elabapy/__init__.py +++ b/elabapy/__init__.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- """A python module to interact with elabftw API""" -__version__ = "0.6.0" +__version__ = "0.6.1" __author__ = "Nicolas CARPi" __author_email__ = "nico-git@deltablot.email" __license__ = "GPL v3" diff --git a/setup.py b/setup.py index 646f207..47f55a6 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='elabapy', - version='0.6.0', + version='0.6.1', description='elabftw API to manage experiments and items', author='Nicolas CARPi', author_email='nico-git@deltablot.email',