nimble-rest-client 1.0rc1__tar.gz

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.
Files changed (147) hide show
  1. nimble_rest_client-1.0rc1/PKG-INFO +23 -0
  2. nimble_rest_client-1.0rc1/README.md +243 -0
  3. nimble_rest_client-1.0rc1/nimble_rest_client/__init__.py +97 -0
  4. nimble_rest_client-1.0rc1/nimble_rest_client/api/__init__.py +13 -0
  5. nimble_rest_client-1.0rc1/nimble_rest_client/api/attachments_api.py +1211 -0
  6. nimble_rest_client-1.0rc1/nimble_rest_client/api/auth_api.py +321 -0
  7. nimble_rest_client-1.0rc1/nimble_rest_client/api/boards_api.py +375 -0
  8. nimble_rest_client-1.0rc1/nimble_rest_client/api/comments_api.py +1827 -0
  9. nimble_rest_client-1.0rc1/nimble_rest_client/api/forms_api.py +680 -0
  10. nimble_rest_client-1.0rc1/nimble_rest_client/api/instances_api.py +4969 -0
  11. nimble_rest_client-1.0rc1/nimble_rest_client/api/time_entries_api.py +1079 -0
  12. nimble_rest_client-1.0rc1/nimble_rest_client/api/todos_api.py +2134 -0
  13. nimble_rest_client-1.0rc1/nimble_rest_client/api/workspaces_api.py +652 -0
  14. nimble_rest_client-1.0rc1/nimble_rest_client/api_client.py +732 -0
  15. nimble_rest_client-1.0rc1/nimble_rest_client/api_response.py +21 -0
  16. nimble_rest_client-1.0rc1/nimble_rest_client/configuration.py +466 -0
  17. nimble_rest_client-1.0rc1/nimble_rest_client/exceptions.py +201 -0
  18. nimble_rest_client-1.0rc1/nimble_rest_client/models/__init__.py +72 -0
  19. nimble_rest_client-1.0rc1/nimble_rest_client/models/actor_object.py +120 -0
  20. nimble_rest_client-1.0rc1/nimble_rest_client/models/actor_object_on_behalf_of.py +94 -0
  21. nimble_rest_client-1.0rc1/nimble_rest_client/models/attachment.py +108 -0
  22. nimble_rest_client-1.0rc1/nimble_rest_client/models/block_instance_request.py +92 -0
  23. nimble_rest_client-1.0rc1/nimble_rest_client/models/board.py +113 -0
  24. nimble_rest_client-1.0rc1/nimble_rest_client/models/board_card.py +92 -0
  25. nimble_rest_client-1.0rc1/nimble_rest_client/models/close_todo200_response.py +94 -0
  26. nimble_rest_client-1.0rc1/nimble_rest_client/models/comment.py +106 -0
  27. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_attachment201_response.py +90 -0
  28. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_comment201_response.py +90 -0
  29. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_comment_request.py +93 -0
  30. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_instance_request.py +107 -0
  31. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_reply_request.py +91 -0
  32. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_time_entry_request.py +96 -0
  33. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_todo201_response.py +90 -0
  34. nimble_rest_client-1.0rc1/nimble_rest_client/models/create_todo_request.py +97 -0
  35. nimble_rest_client-1.0rc1/nimble_rest_client/models/delete_todo200_response.py +89 -0
  36. nimble_rest_client-1.0rc1/nimble_rest_client/models/error.py +90 -0
  37. nimble_rest_client-1.0rc1/nimble_rest_client/models/flag_instance_request.py +91 -0
  38. nimble_rest_client-1.0rc1/nimble_rest_client/models/form.py +121 -0
  39. nimble_rest_client-1.0rc1/nimble_rest_client/models/form_fields_inner.py +98 -0
  40. nimble_rest_client-1.0rc1/nimble_rest_client/models/get_subblocks200_response.py +97 -0
  41. nimble_rest_client-1.0rc1/nimble_rest_client/models/get_token200_response.py +96 -0
  42. nimble_rest_client-1.0rc1/nimble_rest_client/models/get_token_request.py +100 -0
  43. nimble_rest_client-1.0rc1/nimble_rest_client/models/instance.py +142 -0
  44. nimble_rest_client-1.0rc1/nimble_rest_client/models/instance_blocks.py +90 -0
  45. nimble_rest_client-1.0rc1/nimble_rest_client/models/instance_flags.py +90 -0
  46. nimble_rest_client-1.0rc1/nimble_rest_client/models/link_attachment201_response.py +90 -0
  47. nimble_rest_client-1.0rc1/nimble_rest_client/models/link_attachment_request.py +94 -0
  48. nimble_rest_client-1.0rc1/nimble_rest_client/models/link_workitem_request.py +105 -0
  49. nimble_rest_client-1.0rc1/nimble_rest_client/models/link_workitem_request_to.py +94 -0
  50. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_attachments200_response.py +97 -0
  51. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_boards200_response.py +100 -0
  52. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_comments200_response.py +97 -0
  53. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_forms200_response.py +100 -0
  54. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_instances200_response.py +100 -0
  55. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_time_entries_by_user200_response.py +100 -0
  56. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_todos200_response.py +100 -0
  57. nimble_rest_client-1.0rc1/nimble_rest_client/models/list_workspaces200_response.py +100 -0
  58. nimble_rest_client-1.0rc1/nimble_rest_client/models/queue.py +144 -0
  59. nimble_rest_client-1.0rc1/nimble_rest_client/models/reopen_todo200_response.py +92 -0
  60. nimble_rest_client-1.0rc1/nimble_rest_client/models/subblock_node.py +107 -0
  61. nimble_rest_client-1.0rc1/nimble_rest_client/models/swim_lane.py +123 -0
  62. nimble_rest_client-1.0rc1/nimble_rest_client/models/time_entry.py +106 -0
  63. nimble_rest_client-1.0rc1/nimble_rest_client/models/time_entry_create_response.py +98 -0
  64. nimble_rest_client-1.0rc1/nimble_rest_client/models/todo.py +124 -0
  65. nimble_rest_client-1.0rc1/nimble_rest_client/models/unblock_instance_request.py +90 -0
  66. nimble_rest_client-1.0rc1/nimble_rest_client/models/unflag_instance_request.py +91 -0
  67. nimble_rest_client-1.0rc1/nimble_rest_client/models/update_comment200_response.py +92 -0
  68. nimble_rest_client-1.0rc1/nimble_rest_client/models/update_comment_request.py +91 -0
  69. nimble_rest_client-1.0rc1/nimble_rest_client/models/update_todo200_response.py +90 -0
  70. nimble_rest_client-1.0rc1/nimble_rest_client/models/update_todo_request.py +94 -0
  71. nimble_rest_client-1.0rc1/nimble_rest_client/models/work_item_link.py +121 -0
  72. nimble_rest_client-1.0rc1/nimble_rest_client/models/work_item_link_from.py +94 -0
  73. nimble_rest_client-1.0rc1/nimble_rest_client/models/workspace.py +117 -0
  74. nimble_rest_client-1.0rc1/nimble_rest_client/py.typed +0 -0
  75. nimble_rest_client-1.0rc1/nimble_rest_client/rest.py +268 -0
  76. nimble_rest_client-1.0rc1/nimble_rest_client.egg-info/PKG-INFO +23 -0
  77. nimble_rest_client-1.0rc1/nimble_rest_client.egg-info/SOURCES.txt +146 -0
  78. nimble_rest_client-1.0rc1/nimble_rest_client.egg-info/dependency_links.txt +1 -0
  79. nimble_rest_client-1.0rc1/nimble_rest_client.egg-info/requires.txt +4 -0
  80. nimble_rest_client-1.0rc1/nimble_rest_client.egg-info/top_level.txt +1 -0
  81. nimble_rest_client-1.0rc1/pyproject.toml +30 -0
  82. nimble_rest_client-1.0rc1/setup.cfg +7 -0
  83. nimble_rest_client-1.0rc1/setup.py +50 -0
  84. nimble_rest_client-1.0rc1/test/test_actor_object.py +59 -0
  85. nimble_rest_client-1.0rc1/test/test_actor_object_on_behalf_of.py +55 -0
  86. nimble_rest_client-1.0rc1/test/test_attachment.py +67 -0
  87. nimble_rest_client-1.0rc1/test/test_attachments_api.py +60 -0
  88. nimble_rest_client-1.0rc1/test/test_auth_api.py +39 -0
  89. nimble_rest_client-1.0rc1/test/test_block_instance_request.py +56 -0
  90. nimble_rest_client-1.0rc1/test/test_board.py +116 -0
  91. nimble_rest_client-1.0rc1/test/test_board_card.py +54 -0
  92. nimble_rest_client-1.0rc1/test/test_boards_api.py +39 -0
  93. nimble_rest_client-1.0rc1/test/test_close_todo200_response.py +55 -0
  94. nimble_rest_client-1.0rc1/test/test_comment.py +68 -0
  95. nimble_rest_client-1.0rc1/test/test_comments_api.py +74 -0
  96. nimble_rest_client-1.0rc1/test/test_create_attachment201_response.py +53 -0
  97. nimble_rest_client-1.0rc1/test/test_create_comment201_response.py +53 -0
  98. nimble_rest_client-1.0rc1/test/test_create_comment_request.py +55 -0
  99. nimble_rest_client-1.0rc1/test/test_create_instance_request.py +57 -0
  100. nimble_rest_client-1.0rc1/test/test_create_reply_request.py +54 -0
  101. nimble_rest_client-1.0rc1/test/test_create_time_entry_request.py +58 -0
  102. nimble_rest_client-1.0rc1/test/test_create_todo201_response.py +53 -0
  103. nimble_rest_client-1.0rc1/test/test_create_todo_request.py +57 -0
  104. nimble_rest_client-1.0rc1/test/test_delete_todo200_response.py +53 -0
  105. nimble_rest_client-1.0rc1/test/test_error.py +54 -0
  106. nimble_rest_client-1.0rc1/test/test_flag_instance_request.py +54 -0
  107. nimble_rest_client-1.0rc1/test/test_form.py +85 -0
  108. nimble_rest_client-1.0rc1/test/test_form_fields_inner.py +57 -0
  109. nimble_rest_client-1.0rc1/test/test_forms_api.py +46 -0
  110. nimble_rest_client-1.0rc1/test/test_get_subblocks200_response.py +65 -0
  111. nimble_rest_client-1.0rc1/test/test_get_token200_response.py +56 -0
  112. nimble_rest_client-1.0rc1/test/test_get_token_request.py +58 -0
  113. nimble_rest_client-1.0rc1/test/test_instance.py +83 -0
  114. nimble_rest_client-1.0rc1/test/test_instance_blocks.py +55 -0
  115. nimble_rest_client-1.0rc1/test/test_instance_flags.py +55 -0
  116. nimble_rest_client-1.0rc1/test/test_instances_api.py +137 -0
  117. nimble_rest_client-1.0rc1/test/test_link_attachment201_response.py +53 -0
  118. nimble_rest_client-1.0rc1/test/test_link_attachment_request.py +58 -0
  119. nimble_rest_client-1.0rc1/test/test_link_workitem_request.py +64 -0
  120. nimble_rest_client-1.0rc1/test/test_link_workitem_request_to.py +58 -0
  121. nimble_rest_client-1.0rc1/test/test_list_attachments200_response.py +70 -0
  122. nimble_rest_client-1.0rc1/test/test_list_boards200_response.py +104 -0
  123. nimble_rest_client-1.0rc1/test/test_list_comments200_response.py +71 -0
  124. nimble_rest_client-1.0rc1/test/test_list_forms200_response.py +82 -0
  125. nimble_rest_client-1.0rc1/test/test_list_instances200_response.py +56 -0
  126. nimble_rest_client-1.0rc1/test/test_list_time_entries_by_user200_response.py +65 -0
  127. nimble_rest_client-1.0rc1/test/test_list_todos200_response.py +79 -0
  128. nimble_rest_client-1.0rc1/test/test_list_workspaces200_response.py +73 -0
  129. nimble_rest_client-1.0rc1/test/test_queue.py +90 -0
  130. nimble_rest_client-1.0rc1/test/test_reopen_todo200_response.py +54 -0
  131. nimble_rest_client-1.0rc1/test/test_subblock_node.py +69 -0
  132. nimble_rest_client-1.0rc1/test/test_swim_lane.py +114 -0
  133. nimble_rest_client-1.0rc1/test/test_time_entries_api.py +53 -0
  134. nimble_rest_client-1.0rc1/test/test_time_entry.py +68 -0
  135. nimble_rest_client-1.0rc1/test/test_time_entry_create_response.py +57 -0
  136. nimble_rest_client-1.0rc1/test/test_todo.py +93 -0
  137. nimble_rest_client-1.0rc1/test/test_todos_api.py +81 -0
  138. nimble_rest_client-1.0rc1/test/test_unblock_instance_request.py +54 -0
  139. nimble_rest_client-1.0rc1/test/test_unflag_instance_request.py +54 -0
  140. nimble_rest_client-1.0rc1/test/test_update_comment200_response.py +54 -0
  141. nimble_rest_client-1.0rc1/test/test_update_comment_request.py +54 -0
  142. nimble_rest_client-1.0rc1/test/test_update_todo200_response.py +53 -0
  143. nimble_rest_client-1.0rc1/test/test_update_todo_request.py +55 -0
  144. nimble_rest_client-1.0rc1/test/test_work_item_link.py +66 -0
  145. nimble_rest_client-1.0rc1/test/test_work_item_link_from.py +55 -0
  146. nimble_rest_client-1.0rc1/test/test_workspace.py +75 -0
  147. nimble_rest_client-1.0rc1/test/test_workspaces_api.py +46 -0
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.4
2
+ Name: nimble-rest-client
3
+ Version: 1.0rc1
4
+ Summary: Nimble REST OpenAPI
5
+ Home-page:
6
+ Author: API Support
7
+ Author-email: support@nimblework.com
8
+ Keywords: OpenAPI,OpenAPI-Generator,Nimble REST OpenAPI
9
+ Description-Content-Type: text/markdown
10
+ Requires-Dist: urllib3<2.1.0,>=1.25.3
11
+ Requires-Dist: python-dateutil
12
+ Requires-Dist: pydantic>=2
13
+ Requires-Dist: typing-extensions>=4.7.1
14
+ Dynamic: author
15
+ Dynamic: author-email
16
+ Dynamic: description
17
+ Dynamic: description-content-type
18
+ Dynamic: keywords
19
+ Dynamic: requires-dist
20
+ Dynamic: summary
21
+
22
+ REST API for Nimble Forms 2.0. Provides read access to Workspaces and Forms, and full create, read, update, and delete operations on Instances. All endpoints require OAuth 2.0 authentication. **workspaceId convention**: Pass &#x60;workspaceId&#x60; as a query parameter on GET requests (e.g. &#x60;?workspaceId&#x3D;2110769&#x60;) or in the JSON body on POST requests. It is no longer sent as a header.
23
+
@@ -0,0 +1,243 @@
1
+ # nimble-rest-client
2
+ REST API for Nimble Forms 2.0. Provides read access to Workspaces and Forms, and full
3
+ create, read, update, and delete operations on Instances. All endpoints require OAuth 2.0 authentication.
4
+
5
+ **workspaceId convention**: Pass `workspaceId` as a query parameter on GET requests
6
+ (e.g. `?workspaceId=2110769`) or in the JSON body on POST requests. It is no longer
7
+ sent as a header.
8
+
9
+
10
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
11
+
12
+ - API version: 5.0.0
13
+ - Package version: 1.0rc1
14
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
15
+
16
+ ## Requirements.
17
+
18
+ Python 3.7+
19
+
20
+ ## Installation & Usage
21
+ ### pip install
22
+
23
+ If the python package is hosted on a repository, you can install directly using:
24
+
25
+ ```sh
26
+ pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
27
+ ```
28
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
29
+
30
+ Then import the package:
31
+ ```python
32
+ import nimble_rest_client
33
+ ```
34
+
35
+ ### Setuptools
36
+
37
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
38
+
39
+ ```sh
40
+ python setup.py install --user
41
+ ```
42
+ (or `sudo python setup.py install` to install the package for all users)
43
+
44
+ Then import the package:
45
+ ```python
46
+ import nimble_rest_client
47
+ ```
48
+
49
+ ### Tests
50
+
51
+ Execute `pytest` to run the tests.
52
+
53
+ ## Getting Started
54
+
55
+ Please follow the [installation procedure](#installation--usage) and then run the following:
56
+
57
+ ```python
58
+
59
+ import time
60
+ import nimble_rest_client
61
+ from nimble_rest_client.rest import ApiException
62
+ from pprint import pprint
63
+
64
+ # Defining the host is optional and defaults to http://localhost:8080
65
+ # See configuration.py for a list of all supported configuration parameters.
66
+ configuration = nimble_rest_client.Configuration(
67
+ host = "http://localhost:8080"
68
+ )
69
+
70
+ # The client must configure the authentication and authorization parameters
71
+ # in accordance with the API server security policy.
72
+ # Examples for each auth method are provided below, use the example that
73
+ # satisfies your auth use case.
74
+
75
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
76
+
77
+ configuration.access_token = os.environ["ACCESS_TOKEN"]
78
+
79
+
80
+ # Enter a context with an instance of the API client
81
+ with nimble_rest_client.ApiClient(configuration) as api_client:
82
+ # Create an instance of the API class
83
+ api_instance = nimble_rest_client.AttachmentsApi(api_client)
84
+ instance_id = 'instance_id_example' # str | ID of the workitem instance
85
+ file = None # bytearray | File to upload (max 32 MB)
86
+
87
+ try:
88
+ # Upload a file attachment to an instance
89
+ api_response = api_instance.create_attachment(instance_id, file)
90
+ print("The response of AttachmentsApi->create_attachment:\n")
91
+ pprint(api_response)
92
+ except ApiException as e:
93
+ print("Exception when calling AttachmentsApi->create_attachment: %s\n" % e)
94
+
95
+ ```
96
+
97
+ ## Documentation for API Endpoints
98
+
99
+ All URIs are relative to *http://localhost:8080*
100
+
101
+ Class | Method | HTTP request | Description
102
+ ------------ | ------------- | ------------- | -------------
103
+ *AttachmentsApi* | [**create_attachment**](docs/AttachmentsApi.md#create_attachment) | **POST** /rest/v2/instances/{instanceId}/attachments | Upload a file attachment to an instance
104
+ *AttachmentsApi* | [**delete_attachment**](docs/AttachmentsApi.md#delete_attachment) | **DELETE** /rest/v2/instances/{instanceId}/attachments/{attachmentId} | Delete an attachment
105
+ *AttachmentsApi* | [**link_attachment**](docs/AttachmentsApi.md#link_attachment) | **POST** /rest/v2/instances/{instanceId}/attachments/link | Link an external resource as an attachment
106
+ *AttachmentsApi* | [**list_attachments**](docs/AttachmentsApi.md#list_attachments) | **GET** /rest/v2/instances/{instanceId}/attachments | List attachments for an instance
107
+ *AuthApi* | [**get_token**](docs/AuthApi.md#get_token) | **POST** /rest/v1/oauth/token | Get an OAuth access token
108
+ *BoardsApi* | [**list_boards**](docs/BoardsApi.md#list_boards) | **GET** /rest/v2/workspaces/{workspaceId}/boards | List boards for a workspace
109
+ *CommentsApi* | [**create_comment**](docs/CommentsApi.md#create_comment) | **POST** /rest/v2/instances/{instanceId}/comments | Add a comment to an instance
110
+ *CommentsApi* | [**create_reply**](docs/CommentsApi.md#create_reply) | **PUT** /rest/v2/instances/{instanceId}/comments/{commentId}/replies | Add a reply to a comment
111
+ *CommentsApi* | [**delete_comment**](docs/CommentsApi.md#delete_comment) | **DELETE** /rest/v2/instances/{instanceId}/comments/{commentId} | Delete a comment
112
+ *CommentsApi* | [**get_comment**](docs/CommentsApi.md#get_comment) | **GET** /rest/v2/instances/{instanceId}/comments/{commentId} | Get a single comment by ID
113
+ *CommentsApi* | [**list_comments**](docs/CommentsApi.md#list_comments) | **GET** /rest/v2/instances/{instanceId}/comments | List comments for an instance
114
+ *CommentsApi* | [**update_comment**](docs/CommentsApi.md#update_comment) | **PUT** /rest/v2/instances/{instanceId}/comments/{commentId}/content | Edit a comment&#39;s content
115
+ *FormsApi* | [**get_form_by_id**](docs/FormsApi.md#get_form_by_id) | **GET** /rest/v2/forms/{formId} | Get form by ID
116
+ *FormsApi* | [**list_forms**](docs/FormsApi.md#list_forms) | **GET** /rest/v2/forms | List forms
117
+ *InstancesApi* | [**block_instance**](docs/InstancesApi.md#block_instance) | **POST** /rest/v2/instances/{instanceId}/blocks | Block an instance
118
+ *InstancesApi* | [**create_instance**](docs/InstancesApi.md#create_instance) | **POST** /rest/v2/instances | Create a new instance
119
+ *InstancesApi* | [**delete_instance_by_id**](docs/InstancesApi.md#delete_instance_by_id) | **DELETE** /rest/v2/instances/{instanceId} | Delete instance
120
+ *InstancesApi* | [**flag_instance**](docs/InstancesApi.md#flag_instance) | **POST** /rest/v2/instances/{instanceId}/flags | Flag an instance
121
+ *InstancesApi* | [**get_instance_by_id**](docs/InstancesApi.md#get_instance_by_id) | **GET** /rest/v2/instances/{instanceId} | Get instance by ID
122
+ *InstancesApi* | [**get_subblocks**](docs/InstancesApi.md#get_subblocks) | **GET** /rest/v2/instances/{instanceId}/subblocks | Get sub-block instances of an instance
123
+ *InstancesApi* | [**link_workitem**](docs/InstancesApi.md#link_workitem) | **PUT** /rest/v2/instances/{instanceId}/link | Link two workitem instances
124
+ *InstancesApi* | [**list_instances**](docs/InstancesApi.md#list_instances) | **GET** /rest/v2/instances | List all instances
125
+ *InstancesApi* | [**unblock_instance**](docs/InstancesApi.md#unblock_instance) | **DELETE** /rest/v2/instances/{instanceId}/blocks/{actionId} | Unblock an instance
126
+ *InstancesApi* | [**unflag_instance**](docs/InstancesApi.md#unflag_instance) | **DELETE** /rest/v2/instances/{instanceId}/flags/{actionId} | Unflag an instance
127
+ *InstancesApi* | [**unlink_workitem**](docs/InstancesApi.md#unlink_workitem) | **DELETE** /rest/v2/instances/{instanceId}/link/{targetId} | Remove a link between two workitem instances
128
+ *InstancesApi* | [**unvote_instance**](docs/InstancesApi.md#unvote_instance) | **DELETE** /rest/v2/instances/{instanceId}/votes | Remove vote from an instance
129
+ *InstancesApi* | [**update_instance_by_id**](docs/InstancesApi.md#update_instance_by_id) | **PATCH** /rest/v2/instances/{instanceId} | Partially update instance
130
+ *InstancesApi* | [**upsert_instance**](docs/InstancesApi.md#upsert_instance) | **PUT** /rest/v2/instances/{instanceId} | Full replace instance
131
+ *InstancesApi* | [**vote_instance**](docs/InstancesApi.md#vote_instance) | **POST** /rest/v2/instances/{instanceId}/votes | Vote for an instance
132
+ *TimeEntriesApi* | [**create_time_entry**](docs/TimeEntriesApi.md#create_time_entry) | **POST** /rest/v2/instances/{instanceId}/todos/{todoId}/timeentries/{date} | Create or update a time entry
133
+ *TimeEntriesApi* | [**get_time_entry**](docs/TimeEntriesApi.md#get_time_entry) | **GET** /rest/v2/instances/{instanceId}/todos/{todoId}/timeentries/{date} | Get a time entry by todo and date
134
+ *TimeEntriesApi* | [**list_time_entries_by_user**](docs/TimeEntriesApi.md#list_time_entries_by_user) | **GET** /rest/v2/timeentries | List time entries for a user
135
+ *TodosApi* | [**close_todo**](docs/TodosApi.md#close_todo) | **POST** /rest/v2/instances/{instanceId}/todos/{todoId}/close | Close a todo
136
+ *TodosApi* | [**create_todo**](docs/TodosApi.md#create_todo) | **POST** /rest/v2/instances/{instanceId}/todos | Create a todo for an instance
137
+ *TodosApi* | [**delete_todo**](docs/TodosApi.md#delete_todo) | **DELETE** /rest/v2/instances/{instanceId}/todos/{todoId} | Delete a todo
138
+ *TodosApi* | [**get_todo**](docs/TodosApi.md#get_todo) | **GET** /rest/v2/instances/{instanceId}/todos/{todoId} | Get a todo by ID
139
+ *TodosApi* | [**list_todos**](docs/TodosApi.md#list_todos) | **GET** /rest/v2/instances/{instanceId}/todos | List todos for an instance
140
+ *TodosApi* | [**reopen_todo**](docs/TodosApi.md#reopen_todo) | **POST** /rest/v2/instances/{instanceId}/todos/{todoId}/reopen | Reopen a closed todo
141
+ *TodosApi* | [**update_todo**](docs/TodosApi.md#update_todo) | **PATCH** /rest/v2/instances/{instanceId}/todos/{todoId} | Update a todo
142
+ *WorkspacesApi* | [**get_workspace_by_id**](docs/WorkspacesApi.md#get_workspace_by_id) | **GET** /rest/v2/workspaces/{workspaceId} | Get workspace by ID
143
+ *WorkspacesApi* | [**list_workspaces**](docs/WorkspacesApi.md#list_workspaces) | **GET** /rest/v2/workspaces | List all workspaces
144
+
145
+
146
+ ## Documentation For Models
147
+
148
+ - [ActorObject](docs/ActorObject.md)
149
+ - [ActorObjectOnBehalfOf](docs/ActorObjectOnBehalfOf.md)
150
+ - [Attachment](docs/Attachment.md)
151
+ - [BlockInstanceRequest](docs/BlockInstanceRequest.md)
152
+ - [Board](docs/Board.md)
153
+ - [BoardCard](docs/BoardCard.md)
154
+ - [CloseTodo200Response](docs/CloseTodo200Response.md)
155
+ - [Comment](docs/Comment.md)
156
+ - [CreateAttachment201Response](docs/CreateAttachment201Response.md)
157
+ - [CreateComment201Response](docs/CreateComment201Response.md)
158
+ - [CreateCommentRequest](docs/CreateCommentRequest.md)
159
+ - [CreateInstanceRequest](docs/CreateInstanceRequest.md)
160
+ - [CreateReplyRequest](docs/CreateReplyRequest.md)
161
+ - [CreateTimeEntryRequest](docs/CreateTimeEntryRequest.md)
162
+ - [CreateTodo201Response](docs/CreateTodo201Response.md)
163
+ - [CreateTodoRequest](docs/CreateTodoRequest.md)
164
+ - [DeleteTodo200Response](docs/DeleteTodo200Response.md)
165
+ - [Error](docs/Error.md)
166
+ - [FlagInstanceRequest](docs/FlagInstanceRequest.md)
167
+ - [Form](docs/Form.md)
168
+ - [FormFieldsInner](docs/FormFieldsInner.md)
169
+ - [GetSubblocks200Response](docs/GetSubblocks200Response.md)
170
+ - [GetToken200Response](docs/GetToken200Response.md)
171
+ - [GetTokenRequest](docs/GetTokenRequest.md)
172
+ - [Instance](docs/Instance.md)
173
+ - [InstanceBlocks](docs/InstanceBlocks.md)
174
+ - [InstanceFlags](docs/InstanceFlags.md)
175
+ - [LinkAttachment201Response](docs/LinkAttachment201Response.md)
176
+ - [LinkAttachmentRequest](docs/LinkAttachmentRequest.md)
177
+ - [LinkWorkitemRequest](docs/LinkWorkitemRequest.md)
178
+ - [LinkWorkitemRequestTo](docs/LinkWorkitemRequestTo.md)
179
+ - [ListAttachments200Response](docs/ListAttachments200Response.md)
180
+ - [ListBoards200Response](docs/ListBoards200Response.md)
181
+ - [ListComments200Response](docs/ListComments200Response.md)
182
+ - [ListForms200Response](docs/ListForms200Response.md)
183
+ - [ListInstances200Response](docs/ListInstances200Response.md)
184
+ - [ListTimeEntriesByUser200Response](docs/ListTimeEntriesByUser200Response.md)
185
+ - [ListTodos200Response](docs/ListTodos200Response.md)
186
+ - [ListWorkspaces200Response](docs/ListWorkspaces200Response.md)
187
+ - [Queue](docs/Queue.md)
188
+ - [ReopenTodo200Response](docs/ReopenTodo200Response.md)
189
+ - [SubblockNode](docs/SubblockNode.md)
190
+ - [SwimLane](docs/SwimLane.md)
191
+ - [TimeEntry](docs/TimeEntry.md)
192
+ - [TimeEntryCreateResponse](docs/TimeEntryCreateResponse.md)
193
+ - [Todo](docs/Todo.md)
194
+ - [UnblockInstanceRequest](docs/UnblockInstanceRequest.md)
195
+ - [UnflagInstanceRequest](docs/UnflagInstanceRequest.md)
196
+ - [UpdateComment200Response](docs/UpdateComment200Response.md)
197
+ - [UpdateCommentRequest](docs/UpdateCommentRequest.md)
198
+ - [UpdateTodo200Response](docs/UpdateTodo200Response.md)
199
+ - [UpdateTodoRequest](docs/UpdateTodoRequest.md)
200
+ - [WorkItemLink](docs/WorkItemLink.md)
201
+ - [WorkItemLinkFrom](docs/WorkItemLinkFrom.md)
202
+ - [Workspace](docs/Workspace.md)
203
+
204
+
205
+ <a id="documentation-for-authorization"></a>
206
+ ## Documentation For Authorization
207
+
208
+
209
+ Authentication schemes defined for the API:
210
+ <a id="oauth2"></a>
211
+ ### oauth2
212
+
213
+ - **Type**: OAuth
214
+ - **Flow**: application
215
+ - **Authorization URL**:
216
+ - **Scopes**:
217
+ - **read:workspaces**: Read access to workspaces
218
+ - **write:workspaces**: Write access to workspaces
219
+ - **read:forms**: Read access to forms
220
+ - **write:forms**: Write access to forms
221
+ - **read:instances**: Read access to form instances
222
+ - **write:instances**: Write access to form instances
223
+
224
+ <a id="oauth2"></a>
225
+ ### oauth2
226
+
227
+ - **Type**: OAuth
228
+ - **Flow**: accessCode
229
+ - **Authorization URL**: https://auth.digite.com/oauth/authorize
230
+ - **Scopes**:
231
+ - **read:workspaces**: Read access to workspaces
232
+ - **write:workspaces**: Write access to workspaces
233
+ - **read:forms**: Read access to forms
234
+ - **write:forms**: Write access to forms
235
+ - **read:instances**: Read access to form instances
236
+ - **write:instances**: Write access to form instances
237
+
238
+
239
+ ## Author
240
+
241
+ support@nimblework.com
242
+
243
+
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Nimble REST OpenAPI
7
+
8
+ REST API for Nimble Forms 2.0. Provides read access to Workspaces and Forms, and full create, read, update, and delete operations on Instances. All endpoints require OAuth 2.0 authentication. **workspaceId convention**: Pass `workspaceId` as a query parameter on GET requests (e.g. `?workspaceId=2110769`) or in the JSON body on POST requests. It is no longer sent as a header.
9
+
10
+ The version of the OpenAPI document: 5.0.0
11
+ Contact: support@nimblework.com
12
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
13
+
14
+ Do not edit the class manually.
15
+ """ # noqa: E501
16
+
17
+
18
+ __version__ = "1.0rc1"
19
+
20
+ # import apis into sdk package
21
+ from nimble_rest_client.api.attachments_api import AttachmentsApi
22
+ from nimble_rest_client.api.auth_api import AuthApi
23
+ from nimble_rest_client.api.boards_api import BoardsApi
24
+ from nimble_rest_client.api.comments_api import CommentsApi
25
+ from nimble_rest_client.api.forms_api import FormsApi
26
+ from nimble_rest_client.api.instances_api import InstancesApi
27
+ from nimble_rest_client.api.time_entries_api import TimeEntriesApi
28
+ from nimble_rest_client.api.todos_api import TodosApi
29
+ from nimble_rest_client.api.workspaces_api import WorkspacesApi
30
+
31
+ # import ApiClient
32
+ from nimble_rest_client.api_response import ApiResponse
33
+ from nimble_rest_client.api_client import ApiClient
34
+ from nimble_rest_client.configuration import Configuration
35
+ from nimble_rest_client.exceptions import OpenApiException
36
+ from nimble_rest_client.exceptions import ApiTypeError
37
+ from nimble_rest_client.exceptions import ApiValueError
38
+ from nimble_rest_client.exceptions import ApiKeyError
39
+ from nimble_rest_client.exceptions import ApiAttributeError
40
+ from nimble_rest_client.exceptions import ApiException
41
+
42
+ # import models into sdk package
43
+ from nimble_rest_client.models.actor_object import ActorObject
44
+ from nimble_rest_client.models.actor_object_on_behalf_of import ActorObjectOnBehalfOf
45
+ from nimble_rest_client.models.attachment import Attachment
46
+ from nimble_rest_client.models.block_instance_request import BlockInstanceRequest
47
+ from nimble_rest_client.models.board import Board
48
+ from nimble_rest_client.models.board_card import BoardCard
49
+ from nimble_rest_client.models.close_todo200_response import CloseTodo200Response
50
+ from nimble_rest_client.models.comment import Comment
51
+ from nimble_rest_client.models.create_attachment201_response import CreateAttachment201Response
52
+ from nimble_rest_client.models.create_comment201_response import CreateComment201Response
53
+ from nimble_rest_client.models.create_comment_request import CreateCommentRequest
54
+ from nimble_rest_client.models.create_instance_request import CreateInstanceRequest
55
+ from nimble_rest_client.models.create_reply_request import CreateReplyRequest
56
+ from nimble_rest_client.models.create_time_entry_request import CreateTimeEntryRequest
57
+ from nimble_rest_client.models.create_todo201_response import CreateTodo201Response
58
+ from nimble_rest_client.models.create_todo_request import CreateTodoRequest
59
+ from nimble_rest_client.models.delete_todo200_response import DeleteTodo200Response
60
+ from nimble_rest_client.models.error import Error
61
+ from nimble_rest_client.models.flag_instance_request import FlagInstanceRequest
62
+ from nimble_rest_client.models.form import Form
63
+ from nimble_rest_client.models.form_fields_inner import FormFieldsInner
64
+ from nimble_rest_client.models.get_subblocks200_response import GetSubblocks200Response
65
+ from nimble_rest_client.models.get_token200_response import GetToken200Response
66
+ from nimble_rest_client.models.get_token_request import GetTokenRequest
67
+ from nimble_rest_client.models.instance import Instance
68
+ from nimble_rest_client.models.instance_blocks import InstanceBlocks
69
+ from nimble_rest_client.models.instance_flags import InstanceFlags
70
+ from nimble_rest_client.models.link_attachment201_response import LinkAttachment201Response
71
+ from nimble_rest_client.models.link_attachment_request import LinkAttachmentRequest
72
+ from nimble_rest_client.models.link_workitem_request import LinkWorkitemRequest
73
+ from nimble_rest_client.models.link_workitem_request_to import LinkWorkitemRequestTo
74
+ from nimble_rest_client.models.list_attachments200_response import ListAttachments200Response
75
+ from nimble_rest_client.models.list_boards200_response import ListBoards200Response
76
+ from nimble_rest_client.models.list_comments200_response import ListComments200Response
77
+ from nimble_rest_client.models.list_forms200_response import ListForms200Response
78
+ from nimble_rest_client.models.list_instances200_response import ListInstances200Response
79
+ from nimble_rest_client.models.list_time_entries_by_user200_response import ListTimeEntriesByUser200Response
80
+ from nimble_rest_client.models.list_todos200_response import ListTodos200Response
81
+ from nimble_rest_client.models.list_workspaces200_response import ListWorkspaces200Response
82
+ from nimble_rest_client.models.queue import Queue
83
+ from nimble_rest_client.models.reopen_todo200_response import ReopenTodo200Response
84
+ from nimble_rest_client.models.subblock_node import SubblockNode
85
+ from nimble_rest_client.models.swim_lane import SwimLane
86
+ from nimble_rest_client.models.time_entry import TimeEntry
87
+ from nimble_rest_client.models.time_entry_create_response import TimeEntryCreateResponse
88
+ from nimble_rest_client.models.todo import Todo
89
+ from nimble_rest_client.models.unblock_instance_request import UnblockInstanceRequest
90
+ from nimble_rest_client.models.unflag_instance_request import UnflagInstanceRequest
91
+ from nimble_rest_client.models.update_comment200_response import UpdateComment200Response
92
+ from nimble_rest_client.models.update_comment_request import UpdateCommentRequest
93
+ from nimble_rest_client.models.update_todo200_response import UpdateTodo200Response
94
+ from nimble_rest_client.models.update_todo_request import UpdateTodoRequest
95
+ from nimble_rest_client.models.work_item_link import WorkItemLink
96
+ from nimble_rest_client.models.work_item_link_from import WorkItemLinkFrom
97
+ from nimble_rest_client.models.workspace import Workspace
@@ -0,0 +1,13 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from nimble_rest_client.api.attachments_api import AttachmentsApi
5
+ from nimble_rest_client.api.auth_api import AuthApi
6
+ from nimble_rest_client.api.boards_api import BoardsApi
7
+ from nimble_rest_client.api.comments_api import CommentsApi
8
+ from nimble_rest_client.api.forms_api import FormsApi
9
+ from nimble_rest_client.api.instances_api import InstancesApi
10
+ from nimble_rest_client.api.time_entries_api import TimeEntriesApi
11
+ from nimble_rest_client.api.todos_api import TodosApi
12
+ from nimble_rest_client.api.workspaces_api import WorkspacesApi
13
+