You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-6Lines changed: 40 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,13 +14,42 @@ version of the client and a feature complete low level API client, which was gen
14
14
Therefor the OpenAPI Specification of Polarion was used.
15
15
16
16
## Usage of the High Level Client
17
-
tbd
18
-
19
-
## Updating the auto generated part
20
-
To update the auto generated part of the code, execute the `open_api_client_build/build_client_source.sh` script with `path` or `url` as first
21
-
arg and the path to the OpenAPI-Specification as second arg from the project root directory. For Copyright reasons, we don't publish the Specification here,
22
-
but we used the Specification of Polarion version 2023.04 to generate the code published here.
17
+
The high level client is an abstraction of the fine-grained, auto-generated client. It is created for a single project and currently exposes functions for Work Items, their Custom Fields, Links, Attachments and basic support for Documents.
18
+
To get started, create a client and check, if the project exists. In the end, to get all Work Items of a project with an empty query, you can simply run the following code and our client will automatically take care of the paging:
project_exists = client.project_exists() # Should be True
30
+
work_items = client.get_all_work_items()
31
+
```
32
+
During the initialization of the client you can define additional settings like the page size when getting items or the maximum content size when bulk creating new items.
33
+
In addition, you can define your own Work Item class with custom fields, which become available as attributes on object level instead of being part of the `additional_attributes` dictionary only.
34
+
To use this feature, inherit from our Work Item class and pass your extended class to the Client on initialization:
To update the auto generated part of the code, execute the `open_api_client_build/build_client_source.sh` script with `path` or `url` as first
157
+
arg and the path to the OpenAPI-Specification as second arg from the project root directory. For Copyright reasons, we don't publish the Specification here,
158
+
but we used the Specification of Polarion version 2023.04 to generate the code published here.
159
+
126
160
# Contributing
127
161
128
162
We'd love to see your bug reports and improvement suggestions! Please take a
0 commit comments