elabapi-python 0.1.5__py3-none-any.whl → 0.1.7__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- elabapi_python/__init__.py +4 -1
- elabapi_python/api/api_keys_api.py +5 -1
- elabapi_python/api/comments_api.py +5 -1
- elabapi_python/api/config_api.py +5 -1
- elabapi_python/api/events_api.py +5 -1
- elabapi_python/api/experiments_api.py +5 -1
- elabapi_python/api/experiments_templates_api.py +14 -2
- elabapi_python/api/favorite_tags_api.py +5 -1
- elabapi_python/api/items_api.py +10 -2
- elabapi_python/api/items_types_api.py +5 -1
- elabapi_python/api/links_to_experiments_api.py +5 -1
- elabapi_python/api/links_to_items_api.py +5 -1
- elabapi_python/api/notifications_api.py +5 -1
- elabapi_python/api/status_api.py +5 -1
- elabapi_python/api/steps_api.py +5 -1
- elabapi_python/api/tags_api.py +11 -7
- elabapi_python/api/team_tags_api.py +96 -3
- elabapi_python/api/teamgroups_api.py +5 -1
- elabapi_python/api/teams_api.py +1 -1
- elabapi_python/api/todolist_api.py +5 -1
- elabapi_python/api/unfinished_steps_api.py +1 -1
- elabapi_python/api/uploads_api.py +8 -4
- elabapi_python/api/users_api.py +104 -1
- elabapi_python/api_client.py +2 -2
- elabapi_python/configuration.py +3 -3
- elabapi_python/models/__init__.py +4 -1
- elabapi_python/models/apikey.py +1 -1
- elabapi_python/models/apikeys_body.py +1 -1
- elabapi_python/models/comment.py +1 -1
- elabapi_python/models/config.py +28 -2
- elabapi_python/models/entity.py +16 -16
- elabapi_python/models/event.py +1 -1
- elabapi_python/models/events_id_body.py +1 -1
- elabapi_python/models/events_id_body1.py +1 -1
- elabapi_python/models/eventsid_delta.py +1 -1
- elabapi_python/models/experiment.py +1 -1
- elabapi_python/models/experiment_template.py +1 -1
- elabapi_python/models/experiments_body.py +1 -1
- elabapi_python/models/experiments_id_body.py +1 -1
- elabapi_python/models/experiments_links_subid_body.py +1 -1
- elabapi_python/models/experiments_templates_body.py +1 -1
- elabapi_python/models/experiments_templates_id_body.py +84 -0
- elabapi_python/models/favtags_body.py +1 -1
- elabapi_python/models/id.py +1 -1
- elabapi_python/models/id1.py +1 -1
- elabapi_python/models/id2.py +1 -1
- elabapi_python/models/id_comments_body.py +1 -1
- elabapi_python/models/id_status_body.py +1 -1
- elabapi_python/models/id_steps_body.py +1 -1
- elabapi_python/models/id_tags_body.py +1 -1
- elabapi_python/models/id_teamgroups_body.py +1 -1
- elabapi_python/models/id_uploads_body.py +1 -1
- elabapi_python/models/inline_response200.py +1 -1
- elabapi_python/models/inline_response2001.py +1 -1
- elabapi_python/models/inline_response2002.py +1 -1
- elabapi_python/models/inline_response2003.py +1 -1
- elabapi_python/models/item.py +1 -1
- elabapi_python/models/items_body.py +1 -1
- elabapi_python/models/items_id_body.py +1 -1
- elabapi_python/models/items_links_subid_body.py +1 -1
- elabapi_python/models/items_type.py +1 -1
- elabapi_python/models/items_types_body.py +1 -1
- elabapi_python/models/link.py +1 -1
- elabapi_python/models/notification.py +1 -1
- elabapi_python/models/status.py +1 -1
- elabapi_python/models/step.py +1 -1
- elabapi_python/models/steps_subid_body.py +1 -1
- elabapi_python/models/tag.py +1 -1
- elabapi_python/models/tags_subid_body.py +1 -1
- elabapi_python/models/team.py +1 -1
- elabapi_python/models/team_tags_body.py +19 -23
- elabapi_python/models/team_tags_body1.py +116 -0
- elabapi_python/models/team_tags_id_body.py +1 -1
- elabapi_python/models/teamgroup.py +1 -1
- elabapi_python/models/teamgroup_users.py +1 -1
- elabapi_python/models/teamgroups_subid_body.py +1 -1
- elabapi_python/models/teams_body.py +1 -1
- elabapi_python/models/todoitem.py +1 -1
- elabapi_python/models/todolist_body.py +1 -1
- elabapi_python/models/todolist_id_body.py +1 -1
- elabapi_python/models/unfinished_step.py +1 -1
- elabapi_python/models/unfinished_steps.py +1 -1
- elabapi_python/models/upload.py +1 -1
- elabapi_python/models/uploads_subid_body.py +1 -1
- elabapi_python/models/users.py +1 -1
- elabapi_python/models/users_body.py +1 -1
- elabapi_python/models/users_id_body.py +84 -0
- elabapi_python/rest.py +1 -1
- {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/METADATA +2 -2
- elabapi_python-0.1.7.dist-info/RECORD +177 -0
- test/test_api_keys_api.py +1 -1
- test/test_apikey.py +1 -1
- test/test_apikeys_body.py +1 -1
- test/test_comment.py +1 -1
- test/test_comments_api.py +1 -1
- test/test_config.py +1 -1
- test/test_config_api.py +1 -1
- test/test_entity.py +1 -1
- test/test_event.py +1 -1
- test/test_events_api.py +1 -1
- test/test_events_id_body.py +1 -1
- test/test_events_id_body1.py +1 -1
- test/test_eventsid_delta.py +1 -1
- test/test_experiment.py +1 -1
- test/test_experiment_template.py +1 -1
- test/test_experiments_api.py +1 -1
- test/test_experiments_body.py +1 -1
- test/test_experiments_id_body.py +1 -1
- test/test_experiments_links_subid_body.py +1 -1
- test/test_experiments_templates_api.py +1 -1
- test/test_experiments_templates_body.py +1 -1
- test/test_experiments_templates_id_body.py +39 -0
- test/test_favorite_tags_api.py +1 -1
- test/test_favtags_body.py +1 -1
- test/test_id.py +1 -1
- test/test_id1.py +1 -1
- test/test_id2.py +1 -1
- test/test_id_comments_body.py +1 -1
- test/test_id_status_body.py +1 -1
- test/test_id_steps_body.py +1 -1
- test/test_id_tags_body.py +1 -1
- test/test_id_teamgroups_body.py +1 -1
- test/test_id_uploads_body.py +1 -1
- test/test_inline_response200.py +1 -1
- test/test_inline_response2001.py +1 -1
- test/test_inline_response2002.py +1 -1
- test/test_inline_response2003.py +1 -1
- test/test_item.py +1 -1
- test/test_items_api.py +1 -1
- test/test_items_body.py +1 -1
- test/test_items_id_body.py +1 -1
- test/test_items_links_subid_body.py +1 -1
- test/test_items_type.py +1 -1
- test/test_items_types_api.py +1 -1
- test/test_items_types_body.py +1 -1
- test/test_link.py +1 -1
- test/test_links_to_experiments_api.py +1 -1
- test/test_links_to_items_api.py +1 -1
- test/test_notification.py +1 -1
- test/test_notifications_api.py +1 -1
- test/test_status.py +1 -1
- test/test_status_api.py +1 -1
- test/test_step.py +1 -1
- test/test_steps_api.py +1 -1
- test/test_steps_subid_body.py +1 -1
- test/test_tag.py +1 -1
- test/test_tags_api.py +3 -3
- test/test_tags_subid_body.py +1 -1
- test/test_team.py +1 -1
- test/test_team_tags_api.py +8 -1
- test/test_team_tags_body.py +1 -1
- test/test_team_tags_body1.py +39 -0
- test/test_team_tags_id_body.py +1 -1
- test/test_teamgroup.py +1 -1
- test/test_teamgroup_users.py +1 -1
- test/test_teamgroups_api.py +1 -1
- test/test_teamgroups_subid_body.py +1 -1
- test/test_teams_api.py +1 -1
- test/test_teams_body.py +1 -1
- test/test_todoitem.py +1 -1
- test/test_todolist_api.py +1 -1
- test/test_todolist_body.py +1 -1
- test/test_todolist_id_body.py +1 -1
- test/test_unfinished_step.py +1 -1
- test/test_unfinished_steps.py +1 -1
- test/test_unfinished_steps_api.py +1 -1
- test/test_upload.py +1 -1
- test/test_uploads_api.py +1 -1
- test/test_uploads_subid_body.py +1 -1
- test/test_users.py +1 -1
- test/test_users_api.py +8 -1
- test/test_users_body.py +1 -1
- test/test_users_id_body.py +39 -0
- elabapi_python-0.1.5.dist-info/RECORD +0 -171
- {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/WHEEL +0 -0
- {elabapi_python-0.1.5.dist-info → elabapi_python-0.1.7.dist-info}/top_level.txt +0 -0
elabapi_python/__init__.py
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"""
|
|
6
6
|
eLabFTW REST API v2 Documentation
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
9
9
|
|
|
10
10
|
OpenAPI spec version: 2.0.0
|
|
11
11
|
|
|
@@ -56,6 +56,7 @@ from elabapi_python.models.experiments_body import ExperimentsBody
|
|
|
56
56
|
from elabapi_python.models.experiments_id_body import ExperimentsIdBody
|
|
57
57
|
from elabapi_python.models.experiments_links_subid_body import ExperimentsLinksSubidBody
|
|
58
58
|
from elabapi_python.models.experiments_templates_body import ExperimentsTemplatesBody
|
|
59
|
+
from elabapi_python.models.experiments_templates_id_body import ExperimentsTemplatesIdBody
|
|
59
60
|
from elabapi_python.models.favtags_body import FavtagsBody
|
|
60
61
|
from elabapi_python.models.id import Id
|
|
61
62
|
from elabapi_python.models.id1 import Id1
|
|
@@ -85,6 +86,7 @@ from elabapi_python.models.tag import Tag
|
|
|
85
86
|
from elabapi_python.models.tags_subid_body import TagsSubidBody
|
|
86
87
|
from elabapi_python.models.team import Team
|
|
87
88
|
from elabapi_python.models.team_tags_body import TeamTagsBody
|
|
89
|
+
from elabapi_python.models.team_tags_body1 import TeamTagsBody1
|
|
88
90
|
from elabapi_python.models.team_tags_id_body import TeamTagsIdBody
|
|
89
91
|
from elabapi_python.models.teamgroup import Teamgroup
|
|
90
92
|
from elabapi_python.models.teamgroup_users import TeamgroupUsers
|
|
@@ -99,3 +101,4 @@ from elabapi_python.models.upload import Upload
|
|
|
99
101
|
from elabapi_python.models.uploads_subid_body import UploadsSubidBody
|
|
100
102
|
from elabapi_python.models.users import Users
|
|
101
103
|
from elabapi_python.models.users_body import UsersBody
|
|
104
|
+
from elabapi_python.models.users_id_body import UsersIdBody
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class ApiKeysApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -120,6 +120,10 @@ class CommentsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
+
# HTTP header `Content-Type`
|
|
124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
+
['application/json']) # noqa: E501
|
|
126
|
+
|
|
123
127
|
# Authentication setting
|
|
124
128
|
auth_settings = ['token'] # noqa: E501
|
|
125
129
|
|
elabapi_python/api/config_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -94,6 +94,10 @@ class ConfigApi(object):
|
|
|
94
94
|
local_var_files = {}
|
|
95
95
|
|
|
96
96
|
body_params = None
|
|
97
|
+
# HTTP header `Content-Type`
|
|
98
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
99
|
+
['application/json']) # noqa: E501
|
|
100
|
+
|
|
97
101
|
# Authentication setting
|
|
98
102
|
auth_settings = ['token'] # noqa: E501
|
|
99
103
|
|
elabapi_python/api/events_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -102,6 +102,10 @@ class EventsApi(object):
|
|
|
102
102
|
local_var_files = {}
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
|
+
# HTTP header `Content-Type`
|
|
106
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
107
|
+
['application/json']) # noqa: E501
|
|
108
|
+
|
|
105
109
|
# Authentication setting
|
|
106
110
|
auth_settings = ['token'] # noqa: E501
|
|
107
111
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class ExperimentsApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class ExperimentsTemplatesApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
|
@@ -226,6 +230,7 @@ class ExperimentsTemplatesApi(object):
|
|
|
226
230
|
|
|
227
231
|
:param async_req bool
|
|
228
232
|
:param int id: ID of the experiment template (required)
|
|
233
|
+
:param ExperimentsTemplatesIdBody body: Parameters for modifying an experiment template
|
|
229
234
|
:return: ExperimentTemplate
|
|
230
235
|
If the method is called asynchronously,
|
|
231
236
|
returns the request thread.
|
|
@@ -247,12 +252,13 @@ class ExperimentsTemplatesApi(object):
|
|
|
247
252
|
|
|
248
253
|
:param async_req bool
|
|
249
254
|
:param int id: ID of the experiment template (required)
|
|
255
|
+
:param ExperimentsTemplatesIdBody body: Parameters for modifying an experiment template
|
|
250
256
|
:return: ExperimentTemplate
|
|
251
257
|
If the method is called asynchronously,
|
|
252
258
|
returns the request thread.
|
|
253
259
|
"""
|
|
254
260
|
|
|
255
|
-
all_params = ['id'] # noqa: E501
|
|
261
|
+
all_params = ['id', 'body'] # noqa: E501
|
|
256
262
|
all_params.append('async_req')
|
|
257
263
|
all_params.append('_return_http_data_only')
|
|
258
264
|
all_params.append('_preload_content')
|
|
@@ -286,10 +292,16 @@ class ExperimentsTemplatesApi(object):
|
|
|
286
292
|
local_var_files = {}
|
|
287
293
|
|
|
288
294
|
body_params = None
|
|
295
|
+
if 'body' in params:
|
|
296
|
+
body_params = params['body']
|
|
289
297
|
# HTTP header `Accept`
|
|
290
298
|
header_params['Accept'] = self.api_client.select_header_accept(
|
|
291
299
|
['application/json']) # noqa: E501
|
|
292
300
|
|
|
301
|
+
# HTTP header `Content-Type`
|
|
302
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
303
|
+
['application/json']) # noqa: E501
|
|
304
|
+
|
|
293
305
|
# Authentication setting
|
|
294
306
|
auth_settings = ['token'] # noqa: E501
|
|
295
307
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -102,6 +102,10 @@ class FavoriteTagsApi(object):
|
|
|
102
102
|
local_var_files = {}
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
|
+
# HTTP header `Content-Type`
|
|
106
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
107
|
+
['application/json']) # noqa: E501
|
|
108
|
+
|
|
105
109
|
# Authentication setting
|
|
106
110
|
auth_settings = ['token'] # noqa: E501
|
|
107
111
|
|
elabapi_python/api/items_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class ItemsApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
|
@@ -133,6 +137,7 @@ class ItemsApi(object):
|
|
|
133
137
|
|
|
134
138
|
:param async_req bool
|
|
135
139
|
:param int id: ID of the item (required)
|
|
140
|
+
:param str format: Get the entity in a different format like csv, pdf, eln or zip. \"pdfa\" means archive pdf (PDF/A), same with \"zipa\".
|
|
136
141
|
:return: Item
|
|
137
142
|
If the method is called asynchronously,
|
|
138
143
|
returns the request thread.
|
|
@@ -154,12 +159,13 @@ class ItemsApi(object):
|
|
|
154
159
|
|
|
155
160
|
:param async_req bool
|
|
156
161
|
:param int id: ID of the item (required)
|
|
162
|
+
:param str format: Get the entity in a different format like csv, pdf, eln or zip. \"pdfa\" means archive pdf (PDF/A), same with \"zipa\".
|
|
157
163
|
:return: Item
|
|
158
164
|
If the method is called asynchronously,
|
|
159
165
|
returns the request thread.
|
|
160
166
|
"""
|
|
161
167
|
|
|
162
|
-
all_params = ['id'] # noqa: E501
|
|
168
|
+
all_params = ['id', 'format'] # noqa: E501
|
|
163
169
|
all_params.append('async_req')
|
|
164
170
|
all_params.append('_return_http_data_only')
|
|
165
171
|
all_params.append('_preload_content')
|
|
@@ -186,6 +192,8 @@ class ItemsApi(object):
|
|
|
186
192
|
path_params['id'] = params['id'] # noqa: E501
|
|
187
193
|
|
|
188
194
|
query_params = []
|
|
195
|
+
if 'format' in params:
|
|
196
|
+
query_params.append(('format', params['format'])) # noqa: E501
|
|
189
197
|
|
|
190
198
|
header_params = {}
|
|
191
199
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class ItemsTypesApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -120,6 +120,10 @@ class LinksToExperimentsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
+
# HTTP header `Content-Type`
|
|
124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
+
['application/json']) # noqa: E501
|
|
126
|
+
|
|
123
127
|
# Authentication setting
|
|
124
128
|
auth_settings = ['token'] # noqa: E501
|
|
125
129
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -120,6 +120,10 @@ class LinksToItemsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
+
# HTTP header `Content-Type`
|
|
124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
+
['application/json']) # noqa: E501
|
|
126
|
+
|
|
123
127
|
# Authentication setting
|
|
124
128
|
auth_settings = ['token'] # noqa: E501
|
|
125
129
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -104,6 +104,10 @@ class NotificationsApi(object):
|
|
|
104
104
|
local_var_files = {}
|
|
105
105
|
|
|
106
106
|
body_params = None
|
|
107
|
+
# HTTP header `Content-Type`
|
|
108
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
109
|
+
['application/json']) # noqa: E501
|
|
110
|
+
|
|
107
111
|
# Authentication setting
|
|
108
112
|
auth_settings = ['token'] # noqa: E501
|
|
109
113
|
|
elabapi_python/api/status_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -110,6 +110,10 @@ class StatusApi(object):
|
|
|
110
110
|
local_var_files = {}
|
|
111
111
|
|
|
112
112
|
body_params = None
|
|
113
|
+
# HTTP header `Content-Type`
|
|
114
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
115
|
+
['application/json']) # noqa: E501
|
|
116
|
+
|
|
113
117
|
# Authentication setting
|
|
114
118
|
auth_settings = ['token'] # noqa: E501
|
|
115
119
|
|
elabapi_python/api/steps_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -120,6 +120,10 @@ class StepsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
+
# HTTP header `Content-Type`
|
|
124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
+
['application/json']) # noqa: E501
|
|
126
|
+
|
|
123
127
|
# Authentication setting
|
|
124
128
|
auth_settings = ['token'] # noqa: E501
|
|
125
129
|
|
elabapi_python/api/tags_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -33,9 +33,9 @@ class TagsApi(object):
|
|
|
33
33
|
self.api_client = api_client
|
|
34
34
|
|
|
35
35
|
def delete_tag(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
36
|
-
"""Delete
|
|
36
|
+
"""Delete all tags. # noqa: E501
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
All the tags from that entity get removed. # noqa: E501
|
|
39
39
|
This method makes a synchronous HTTP request by default. To make an
|
|
40
40
|
asynchronous HTTP request, please pass async_req=True
|
|
41
41
|
>>> thread = api.delete_tag(entity_type, id, subid, async_req=True)
|
|
@@ -57,9 +57,9 @@ class TagsApi(object):
|
|
|
57
57
|
return data
|
|
58
58
|
|
|
59
59
|
def delete_tag_with_http_info(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
60
|
-
"""Delete
|
|
60
|
+
"""Delete all tags. # noqa: E501
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
All the tags from that entity get removed. # noqa: E501
|
|
63
63
|
This method makes a synchronous HTTP request by default. To make an
|
|
64
64
|
asynchronous HTTP request, please pass async_req=True
|
|
65
65
|
>>> thread = api.delete_tag_with_http_info(entity_type, id, subid, async_req=True)
|
|
@@ -120,6 +120,10 @@ class TagsApi(object):
|
|
|
120
120
|
local_var_files = {}
|
|
121
121
|
|
|
122
122
|
body_params = None
|
|
123
|
+
# HTTP header `Content-Type`
|
|
124
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
125
|
+
['application/json']) # noqa: E501
|
|
126
|
+
|
|
123
127
|
# Authentication setting
|
|
124
128
|
auth_settings = ['token'] # noqa: E501
|
|
125
129
|
|
|
@@ -140,7 +144,7 @@ class TagsApi(object):
|
|
|
140
144
|
collection_formats=collection_formats)
|
|
141
145
|
|
|
142
146
|
def patch_tag(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
143
|
-
"""Actions on a tag. # noqa: E501
|
|
147
|
+
"""Actions on a tag (like removing it from the entity). # noqa: E501
|
|
144
148
|
|
|
145
149
|
This method makes a synchronous HTTP request by default. To make an
|
|
146
150
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -164,7 +168,7 @@ class TagsApi(object):
|
|
|
164
168
|
return data
|
|
165
169
|
|
|
166
170
|
def patch_tag_with_http_info(self, entity_type, id, subid, **kwargs): # noqa: E501
|
|
167
|
-
"""Actions on a tag. # noqa: E501
|
|
171
|
+
"""Actions on a tag (like removing it from the entity). # noqa: E501
|
|
168
172
|
|
|
169
173
|
This method makes a synchronous HTTP request by default. To make an
|
|
170
174
|
asynchronous HTTP request, please pass async_req=True
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -102,6 +102,10 @@ class TeamTagsApi(object):
|
|
|
102
102
|
local_var_files = {}
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
|
+
# HTTP header `Content-Type`
|
|
106
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
107
|
+
['application/json']) # noqa: E501
|
|
108
|
+
|
|
105
109
|
# Authentication setting
|
|
106
110
|
auth_settings = ['token'] # noqa: E501
|
|
107
111
|
|
|
@@ -130,7 +134,7 @@ class TeamTagsApi(object):
|
|
|
130
134
|
>>> result = thread.get()
|
|
131
135
|
|
|
132
136
|
:param async_req bool
|
|
133
|
-
:param
|
|
137
|
+
:param TeamTagsBody1 body: Parameters for modifying team tags.
|
|
134
138
|
:return: list[Tag]
|
|
135
139
|
If the method is called asynchronously,
|
|
136
140
|
returns the request thread.
|
|
@@ -151,7 +155,7 @@ class TeamTagsApi(object):
|
|
|
151
155
|
>>> result = thread.get()
|
|
152
156
|
|
|
153
157
|
:param async_req bool
|
|
154
|
-
:param
|
|
158
|
+
:param TeamTagsBody1 body: Parameters for modifying team tags.
|
|
155
159
|
:return: list[Tag]
|
|
156
160
|
If the method is called asynchronously,
|
|
157
161
|
returns the request thread.
|
|
@@ -315,6 +319,95 @@ class TeamTagsApi(object):
|
|
|
315
319
|
_request_timeout=params.get('_request_timeout'),
|
|
316
320
|
collection_formats=collection_formats)
|
|
317
321
|
|
|
322
|
+
def post_team_tag(self, **kwargs): # noqa: E501
|
|
323
|
+
"""Create a tag in the team. # noqa: E501
|
|
324
|
+
|
|
325
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
326
|
+
asynchronous HTTP request, please pass async_req=True
|
|
327
|
+
>>> thread = api.post_team_tag(async_req=True)
|
|
328
|
+
>>> result = thread.get()
|
|
329
|
+
|
|
330
|
+
:param async_req bool
|
|
331
|
+
:param TeamTagsBody body: Parameters for adding a tag in the team.
|
|
332
|
+
:return: None
|
|
333
|
+
If the method is called asynchronously,
|
|
334
|
+
returns the request thread.
|
|
335
|
+
"""
|
|
336
|
+
kwargs['_return_http_data_only'] = True
|
|
337
|
+
if kwargs.get('async_req'):
|
|
338
|
+
return self.post_team_tag_with_http_info(**kwargs) # noqa: E501
|
|
339
|
+
else:
|
|
340
|
+
(data) = self.post_team_tag_with_http_info(**kwargs) # noqa: E501
|
|
341
|
+
return data
|
|
342
|
+
|
|
343
|
+
def post_team_tag_with_http_info(self, **kwargs): # noqa: E501
|
|
344
|
+
"""Create a tag in the team. # noqa: E501
|
|
345
|
+
|
|
346
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
347
|
+
asynchronous HTTP request, please pass async_req=True
|
|
348
|
+
>>> thread = api.post_team_tag_with_http_info(async_req=True)
|
|
349
|
+
>>> result = thread.get()
|
|
350
|
+
|
|
351
|
+
:param async_req bool
|
|
352
|
+
:param TeamTagsBody body: Parameters for adding a tag in the team.
|
|
353
|
+
:return: None
|
|
354
|
+
If the method is called asynchronously,
|
|
355
|
+
returns the request thread.
|
|
356
|
+
"""
|
|
357
|
+
|
|
358
|
+
all_params = ['body'] # noqa: E501
|
|
359
|
+
all_params.append('async_req')
|
|
360
|
+
all_params.append('_return_http_data_only')
|
|
361
|
+
all_params.append('_preload_content')
|
|
362
|
+
all_params.append('_request_timeout')
|
|
363
|
+
|
|
364
|
+
params = locals()
|
|
365
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
366
|
+
if key not in all_params:
|
|
367
|
+
raise TypeError(
|
|
368
|
+
"Got an unexpected keyword argument '%s'"
|
|
369
|
+
" to method post_team_tag" % key
|
|
370
|
+
)
|
|
371
|
+
params[key] = val
|
|
372
|
+
del params['kwargs']
|
|
373
|
+
|
|
374
|
+
collection_formats = {}
|
|
375
|
+
|
|
376
|
+
path_params = {}
|
|
377
|
+
|
|
378
|
+
query_params = []
|
|
379
|
+
|
|
380
|
+
header_params = {}
|
|
381
|
+
|
|
382
|
+
form_params = []
|
|
383
|
+
local_var_files = {}
|
|
384
|
+
|
|
385
|
+
body_params = None
|
|
386
|
+
if 'body' in params:
|
|
387
|
+
body_params = params['body']
|
|
388
|
+
# HTTP header `Content-Type`
|
|
389
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
390
|
+
['application/json']) # noqa: E501
|
|
391
|
+
|
|
392
|
+
# Authentication setting
|
|
393
|
+
auth_settings = ['token'] # noqa: E501
|
|
394
|
+
|
|
395
|
+
return self.api_client.call_api(
|
|
396
|
+
'/team_tags', 'POST',
|
|
397
|
+
path_params,
|
|
398
|
+
query_params,
|
|
399
|
+
header_params,
|
|
400
|
+
body=body_params,
|
|
401
|
+
post_params=form_params,
|
|
402
|
+
files=local_var_files,
|
|
403
|
+
response_type=None, # noqa: E501
|
|
404
|
+
auth_settings=auth_settings,
|
|
405
|
+
async_req=params.get('async_req'),
|
|
406
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
407
|
+
_preload_content=params.get('_preload_content', True),
|
|
408
|
+
_request_timeout=params.get('_request_timeout'),
|
|
409
|
+
collection_formats=collection_formats)
|
|
410
|
+
|
|
318
411
|
def read_team_tag(self, id, **kwargs): # noqa: E501
|
|
319
412
|
"""Read a tag. # noqa: E501
|
|
320
413
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -110,6 +110,10 @@ class TeamgroupsApi(object):
|
|
|
110
110
|
local_var_files = {}
|
|
111
111
|
|
|
112
112
|
body_params = None
|
|
113
|
+
# HTTP header `Content-Type`
|
|
114
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
115
|
+
['application/json']) # noqa: E501
|
|
116
|
+
|
|
113
117
|
# Authentication setting
|
|
114
118
|
auth_settings = ['token'] # noqa: E501
|
|
115
119
|
|
elabapi_python/api/teams_api.py
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"""
|
|
4
4
|
eLabFTW REST API v2 Documentation
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
This document describes all available endpoints and methods for eLabFTW's API version 2. # noqa: E501
|
|
7
7
|
|
|
8
8
|
OpenAPI spec version: 2.0.0
|
|
9
9
|
|
|
@@ -102,6 +102,10 @@ class TodolistApi(object):
|
|
|
102
102
|
local_var_files = {}
|
|
103
103
|
|
|
104
104
|
body_params = None
|
|
105
|
+
# HTTP header `Content-Type`
|
|
106
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
107
|
+
['application/json']) # noqa: E501
|
|
108
|
+
|
|
105
109
|
# Authentication setting
|
|
106
110
|
auth_settings = ['token'] # noqa: E501
|
|
107
111
|
|