Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 136 additions & 42 deletions api/openapi.yaml

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions docs/CommitApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ No authorization required

<a name="getCommitsByProject"></a>
# **getCommitsByProject**
> List&lt;Commit&gt; getCommitsByProject(projectId)
> List&lt;Commit&gt; getCommitsByProject(projectId, pageAfter, pageBefore, pageSize)

Get commits by project

Expand All @@ -98,8 +98,11 @@ public class Example {

CommitApi apiInstance = new CommitApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Commit> result = apiInstance.getCommitsByProject(projectId);
List<Commit> result = apiInstance.getCommitsByProject(projectId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling CommitApi#getCommitsByProject");
Expand All @@ -117,6 +120,9 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down
26 changes: 19 additions & 7 deletions docs/ElementApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -79,7 +79,7 @@ No authorization required

<a name="getElementsByProjectCommit"></a>
# **getElementsByProjectCommit**
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId)
> List&lt;Element&gt; getElementsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize)

Get elements by project and commit

Expand All @@ -100,8 +100,11 @@ public class Example {
ElementApi apiInstance = new ElementApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId);
List<Element> result = apiInstance.getElementsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ElementApi#getElementsByProjectCommit");
Expand All @@ -120,6 +123,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -132,7 +138,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand All @@ -145,7 +151,7 @@ No authorization required

<a name="getRootsByProjectCommit"></a>
# **getRootsByProjectCommit**
> List&lt;Element&gt; getRootsByProjectCommit(projectId, commitId)
> List&lt;Element&gt; getRootsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize)

Get root elements by project and commit

Expand All @@ -166,8 +172,11 @@ public class Example {
ElementApi apiInstance = new ElementApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
UUID commitId = new UUID(); // UUID | ID of the commit
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId);
List<Element> result = apiInstance.getRootsByProjectCommit(projectId, commitId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ElementApi#getRootsByProjectCommit");
Expand All @@ -186,6 +195,9 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**commitId** | [**UUID**](.md)| ID of the commit |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -198,7 +210,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
1 change: 1 addition & 0 deletions docs/Project.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**atType** | [**AtTypeEnum**](#AtTypeEnum) | | [optional]
**description** | **String** | | [optional]
**id** | [**UUID**](UUID.md) | | [optional]
**name** | **String** | | [optional]

Expand Down
14 changes: 11 additions & 3 deletions docs/ProjectApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ No authorization required

<a name="getProjects"></a>
# **getProjects**
> List&lt;Project&gt; getProjects()
> List&lt;Project&gt; getProjects(pageAfter, pageBefore, pageSize)

Get projects

Expand All @@ -94,8 +94,11 @@ public class Example {
defaultClient.setBasePath("http://localhost");

ProjectApi apiInstance = new ProjectApi(defaultClient);
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Project> result = apiInstance.getProjects();
List<Project> result = apiInstance.getProjects(pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#getProjects");
Expand All @@ -109,7 +112,12 @@ public class Example {
```

### Parameters
This endpoint does not need any parameter.

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down
16 changes: 11 additions & 5 deletions docs/QueryApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Method | HTTP request | Description

<a name="getQueriesByProject"></a>
# **getQueriesByProject**
> List&lt;Query&gt; getQueriesByProject(projectId)
> List&lt;Query&gt; getQueriesByProject(projectId, pageAfter, pageBefore, pageSize)

Get queries by project

Expand All @@ -34,8 +34,11 @@ public class Example {

QueryApi apiInstance = new QueryApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Query> result = apiInstance.getQueriesByProject(projectId);
List<Query> result = apiInstance.getQueriesByProject(projectId, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling QueryApi#getQueriesByProject");
Expand All @@ -53,6 +56,9 @@ public class Example {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**projectId** | [**UUID**](.md)| ID of the project |
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand Down Expand Up @@ -199,7 +205,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -267,7 +273,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down Expand Up @@ -337,7 +343,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
12 changes: 9 additions & 3 deletions docs/RelationshipApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Method | HTTP request | Description

<a name="getRelationshipsByProjectCommitRelatedElement"></a>
# **getRelationshipsByProjectCommitRelatedElement**
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction)
> List&lt;Relationship&gt; getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize)

Get relationships by project, commit, and related element

Expand All @@ -32,8 +32,11 @@ public class Example {
UUID commitId = new UUID(); // UUID | ID of the commit
UUID relatedElementId = new UUID(); // UUID | ID of the related element
String direction = "both"; // String | Filter for relationships that are incoming (in), outgoing (out), or both relative to the related element
String pageAfter = "pageAfter_example"; // String | Page after
String pageBefore = "pageBefore_example"; // String | Page before
Integer pageSize = 56; // Integer | Page size
try {
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction);
List<Relationship> result = apiInstance.getRelationshipsByProjectCommitRelatedElement(projectId, commitId, relatedElementId, direction, pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling RelationshipApi#getRelationshipsByProjectCommitRelatedElement");
Expand All @@ -54,6 +57,9 @@ Name | Type | Description | Notes
**commitId** | [**UUID**](.md)| ID of the commit |
**relatedElementId** | [**UUID**](.md)| ID of the related element |
**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]
**pageAfter** | **String**| Page after | [optional]
**pageBefore** | **String**| Page before | [optional]
**pageSize** | **Integer**| Page size | [optional]

### Return type

Expand All @@ -66,7 +72,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/ld+json, application/json
- **Accept**: application/json, application/ld+json

### HTTP response details
| Status code | Description | Response headers |
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/omg/sysml/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/2020-09/java");
setUserAgent("OpenAPI-Generator/2021-03/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
42 changes: 33 additions & 9 deletions src/main/java/org/omg/sysml/api/CommitApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId,
/**
* Build call for getCommitsByProject
* @param projectId ID of the project (required)
* @param pageAfter Page after (optional)
* @param pageBefore Page before (optional)
* @param pageSize Page size (optional)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand All @@ -209,7 +212,7 @@ public okhttp3.Call getCommitByProjectAndIdAsync(UUID projectId, UUID commitId,
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _callback) throws ApiException {
public okhttp3.Call getCommitsByProjectCall(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback _callback) throws ApiException {
Object localVarPostBody = null;

// create path and map variables
Expand All @@ -218,6 +221,18 @@ public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _c

List<Pair> localVarQueryParams = new ArrayList<Pair>();
List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
if (pageAfter != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[after]", pageAfter));
}

if (pageBefore != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[before]", pageBefore));
}

if (pageSize != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("page[size]", pageSize));
}

Map<String, String> localVarHeaderParams = new HashMap<String, String>();
Map<String, String> localVarCookieParams = new HashMap<String, String>();
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
Expand All @@ -240,15 +255,15 @@ public okhttp3.Call getCommitsByProjectCall(UUID projectId, final ApiCallback _c
}

@SuppressWarnings("rawtypes")
private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final ApiCallback _callback) throws ApiException {
private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback _callback) throws ApiException {

// verify the required parameter 'projectId' is set
if (projectId == null) {
throw new ApiException("Missing the required parameter 'projectId' when calling getCommitsByProject(Async)");
}


okhttp3.Call localVarCall = getCommitsByProjectCall(projectId, _callback);
okhttp3.Call localVarCall = getCommitsByProjectCall(projectId, pageAfter, pageBefore, pageSize, _callback);
return localVarCall;

}
Expand All @@ -257,6 +272,9 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
* Get commits by project
*
* @param projectId ID of the project (required)
* @param pageAfter Page after (optional)
* @param pageBefore Page before (optional)
* @param pageSize Page size (optional)
* @return List&lt;Commit&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -269,15 +287,18 @@ private okhttp3.Call getCommitsByProjectValidateBeforeCall(UUID projectId, final
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public List<Commit> getCommitsByProject(UUID projectId) throws ApiException {
ApiResponse<List<Commit>> localVarResp = getCommitsByProjectWithHttpInfo(projectId);
public List<Commit> getCommitsByProject(UUID projectId, String pageAfter, String pageBefore, Integer pageSize) throws ApiException {
ApiResponse<List<Commit>> localVarResp = getCommitsByProjectWithHttpInfo(projectId, pageAfter, pageBefore, pageSize);
return localVarResp.getData();
}

/**
* Get commits by project
*
* @param projectId ID of the project (required)
* @param pageAfter Page after (optional)
* @param pageBefore Page before (optional)
* @param pageSize Page size (optional)
* @return ApiResponse&lt;List&lt;Commit&gt;&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -290,8 +311,8 @@ public List<Commit> getCommitsByProject(UUID projectId) throws ApiException {
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId) throws ApiException {
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, null);
public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId, String pageAfter, String pageBefore, Integer pageSize) throws ApiException {
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, pageAfter, pageBefore, pageSize, null);
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -300,6 +321,9 @@ public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId)
* Get commits by project (asynchronously)
*
* @param projectId ID of the project (required)
* @param pageAfter Page after (optional)
* @param pageBefore Page before (optional)
* @param pageSize Page size (optional)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
Expand All @@ -313,9 +337,9 @@ public ApiResponse<List<Commit>> getCommitsByProjectWithHttpInfo(UUID projectId)
<tr><td> 0 </td><td> Unexpected response. </td><td> - </td></tr>
</table>
*/
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, final ApiCallback<List<Commit>> _callback) throws ApiException {
public okhttp3.Call getCommitsByProjectAsync(UUID projectId, String pageAfter, String pageBefore, Integer pageSize, final ApiCallback<List<Commit>> _callback) throws ApiException {

okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, _callback);
okhttp3.Call localVarCall = getCommitsByProjectValidateBeforeCall(projectId, pageAfter, pageBefore, pageSize, _callback);
Type localVarReturnType = new TypeToken<List<Commit>>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
Loading