Skip to content

Commit 9849f78

Browse files
committed
Merge branch 'release/2020-03-rc2'
2 parents 7598fd5 + b482edb commit 9849f78

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+2687
-2000
lines changed

.idea/.gitignore

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/codeStyles/codeStyleConfig.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

+21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/sbt.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1.3
1+
4.2.3

LICENSE

-165
This file was deleted.

README.md

+23-21
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Add this dependency to your project's POM:
3939
<dependency>
4040
<groupId>org.omg.sysml</groupId>
4141
<artifactId>sysml-v2-api-client</artifactId>
42-
<version>2019-09</version>
42+
<version>2020-03-rc2</version>
4343
<scope>compile</scope>
4444
</dependency>
4545
```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
4949
Add this dependency to your project's build file:
5050

5151
```groovy
52-
compile "org.omg.sysml:sysml-v2-api-client:2019-09"
52+
compile "org.omg.sysml:sysml-v2-api-client:2020-03-rc2"
5353
```
5454

5555
### Others
@@ -62,7 +62,7 @@ mvn clean package
6262

6363
Then manually install the following JARs:
6464

65-
* `target/sysml-v2-api-client-2019-09.jar`
65+
* `target/sysml-v2-api-client-2020-03-rc2.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started
@@ -76,20 +76,21 @@ import org.omg.sysml.ApiClient;
7676
import org.omg.sysml.ApiException;
7777
import org.omg.sysml.Configuration;
7878
import org.omg.sysml.models.*;
79-
import org.omg.sysml.api.ElementApi;
79+
import org.omg.sysml.api.CommitApi;
8080

8181
public class Example {
8282
public static void main(String[] args) {
8383
ApiClient defaultClient = Configuration.getDefaultApiClient();
8484
defaultClient.setBasePath("http://localhost");
8585

86-
ElementApi apiInstance = new ElementApi(defaultClient);
87-
Map<String, Object> body = null; // Map<String, Object> |
86+
CommitApi apiInstance = new CommitApi(defaultClient);
87+
String projectId = "projectId_example"; // String | ID of the project
88+
String commitId = "commitId_example"; // String | ID of the commit
8889
try {
89-
Element result = apiInstance.createElement(body);
90+
Commit result = apiInstance.getCommitByProjectAndId(projectId, commitId);
9091
System.out.println(result);
9192
} catch (ApiException e) {
92-
System.err.println("Exception when calling ElementApi#createElement");
93+
System.err.println("Exception when calling CommitApi#getCommitByProjectAndId");
9394
System.err.println("Status code: " + e.getCode());
9495
System.err.println("Reason: " + e.getResponseBody());
9596
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -106,28 +107,29 @@ All URIs are relative to *http://localhost*
106107

107108
Class | Method | HTTP request | Description
108109
------------ | ------------- | ------------- | -------------
109-
*ElementApi* | [**createElement**](docs/ElementApi.md#createElement) | **POST** /elements | Add a new element
110-
*ElementApi* | [**getElement**](docs/ElementApi.md#getElement) | **GET** /elements/{identifier} | Get element by its ID
111-
*ElementApi* | [**getElementByProjectAndId**](docs/ElementApi.md#getElementByProjectAndId) | **GET** /projects/{project_identifier}/elements/{element_identifier} | Get element by project ID and its ID
112-
*ElementApi* | [**getElements**](docs/ElementApi.md#getElements) | **GET** /elements | Get all elements
113-
*ElementApi* | [**getElementsInProject**](docs/ElementApi.md#getElementsInProject) | **GET** /projects/{project_identifier}/elements | Get all elements in the project
114-
*ProjectApi* | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /projects | Add a new project
115-
*ProjectApi* | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /projects/{identifier} | Get project by its ID
116-
*ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /projects | Get all projects
117-
*RelationshipApi* | [**createRelationship**](docs/RelationshipApi.md#createRelationship) | **POST** /relationships | Add a new relationship
118-
*RelationshipApi* | [**getRelationship**](docs/RelationshipApi.md#getRelationship) | **GET** /relationships/{identifier} | Get relationship by its ID
119-
*RelationshipApi* | [**getRelationships**](docs/RelationshipApi.md#getRelationships) | **GET** /relationships | Get all relationships
120-
*RelationshipApi* | [**getRelationshipsByProject**](docs/RelationshipApi.md#getRelationshipsByProject) | **GET** /projects/{project_identifier}/relationships | Get all relationships in the project
110+
*CommitApi* | [**getCommitByProjectAndId**](docs/CommitApi.md#getCommitByProjectAndId) | **GET** /projects/{projectId}/commits/{commitId} | Get commit by project and ID
111+
*CommitApi* | [**getCommitsByProject**](docs/CommitApi.md#getCommitsByProject) | **GET** /projects/{projectId}/commits | Get commits by project
112+
*CommitApi* | [**getHeadCommitByProject**](docs/CommitApi.md#getHeadCommitByProject) | **GET** /projects/{projectId}/head | Get head commit by project
113+
*CommitApi* | [**postCommitByProject**](docs/CommitApi.md#postCommitByProject) | **POST** /projects/{projectId}/commits | Create commit by project
114+
*ElementApi* | [**getElementByProjectCommitId**](docs/ElementApi.md#getElementByProjectCommitId) | **GET** /projects/{projectId}/commits/{commitId}/elements/{elementId} | Get element by project, commit and ID
115+
*ElementApi* | [**getElementsByProjectCommit**](docs/ElementApi.md#getElementsByProjectCommit) | **GET** /projects/{projectId}/commits/{commitId}/elements | Get elements by project and commit
116+
*ProjectApi* | [**getProjectById**](docs/ProjectApi.md#getProjectById) | **GET** /projects/{projectId} | Get project by ID
117+
*ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /projects | Get projects
118+
*ProjectApi* | [**postProject**](docs/ProjectApi.md#postProject) | **POST** /projects | Create project
119+
*RelationshipApi* | [**getRelationshipsByProjectCommitRelatedElement**](docs/RelationshipApi.md#getRelationshipsByProjectCommitRelatedElement) | **GET** /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships by project, commit, and related element.
121120

122121

123122
## Documentation for Models
124123

124+
- [Commit](docs/Commit.md)
125125
- [Element](docs/Element.md)
126+
- [ElementIdentity](docs/ElementIdentity.md)
127+
- [ElementVersion](docs/ElementVersion.md)
126128
- [Error](docs/Error.md)
127129
- [Identified](docs/Identified.md)
128130
- [Project](docs/Project.md)
131+
- [Record](docs/Record.md)
129132
- [Relationship](docs/Relationship.md)
130-
- [RelationshipAllOf](docs/RelationshipAllOf.md)
131133

132134

133135
## Documentation for Authorization

build-shadow.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4'
8+
classpath 'com.github.jengelman.gradle.plugins:shadow:5.2.0'
99
}
1010
}
1111

build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ apply plugin: 'eclipse'
33
apply plugin: 'java'
44

55
group = 'org.omg.sysml'
6-
version = '2019-09'
6+
version = '2020-03-rc2'
77

88
buildscript {
99
repositories {
10-
mavenCentral()
10+
maven { url "https://repo1.maven.org/maven2" }
1111
jcenter()
1212
}
1313
dependencies {
@@ -105,8 +105,8 @@ dependencies {
105105
compile 'com.google.code.gson:gson:2.8.5'
106106
compile 'io.gsonfire:gson-fire:1.8.3'
107107
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
108-
compile 'org.threeten:threetenbp:1.3.5'
109-
testCompile 'junit:junit:4.12'
108+
compile 'org.threeten:threetenbp:1.4.0'
109+
testCompile 'junit:junit:4.13'
110110
}
111111

112112
javadoc {

0 commit comments

Comments
 (0)