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
Get relationships by project, commit, and related element.
15
15
@@ -31,8 +31,9 @@ public class Example {
31
31
UUID projectId =newUUID(); // UUID | ID of the project
32
32
UUID commitId =newUUID(); // UUID | ID of the commit
33
33
UUID relatedElementId =newUUID(); // UUID | ID of the related element
34
+
String direction ="both"; // String | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
34
35
try {
35
-
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId);
36
+
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
36
37
System.out.println(result);
37
38
} catch (ApiException e) {
38
39
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
@@ -52,6 +53,7 @@ Name | Type | Description | Notes
52
53
**projectId** | [**UUID**](.md)| ID of the project |
53
54
**commitId** | [**UUID**](.md)| ID of the commit |
54
55
**relatedElementId** | [**UUID**](.md)| ID of the related element |
56
+
**direction** | **String**| Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element | [optional][default to both][enum: in, out, both]
Copy file name to clipboardExpand all lines: src/main/java/org/omg/sysml/api/RelationshipApi.java
+17-9
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ public void setApiClient(ApiClient apiClient) {
61
61
* @param projectId ID of the project (required)
62
62
* @param commitId ID of the commit (required)
63
63
* @param relatedElementId ID of the related element (required)
64
+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
64
65
* @param _callback Callback for upload/download progress
65
66
* @return Call to execute
66
67
* @throws ApiException If fail to serialize the request body object
@@ -73,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
* @param relatedElementId ID of the related element (required)
143
+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
138
144
* @return List<Relationship>
139
145
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
@@ -157,6 +163,7 @@ public List<Relationship> getRelationshipsByProjectCommitRelatedElement(UUID pro
157
163
* @param projectId ID of the project (required)
158
164
* @param commitId ID of the commit (required)
159
165
* @param relatedElementId ID of the related element (required)
166
+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
@@ -180,6 +187,7 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
180
187
* @param projectId ID of the project (required)
181
188
* @param commitId ID of the commit (required)
182
189
* @param relatedElementId ID of the related element (required)
190
+
* @param direction Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element (optional, default to both)
183
191
* @param _callback The callback to be executed when the API call finishes
184
192
* @return The request call
185
193
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
@@ -192,9 +200,9 @@ public ApiResponse<List<Relationship>> getRelationshipsByProjectCommitRelatedEle
0 commit comments