Skip to content

Commit 475b930

Browse files
committed
Built clean due to refactoring
1 parent e6b129a commit 475b930

File tree

14 files changed

+54
-853
lines changed

14 files changed

+54
-853
lines changed

README.md

Lines changed: 19 additions & 19 deletions
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-api-client</artifactId>
42-
<version>0.1.0</version>
42+
<version>2019-05</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-api-client:0.1.0"
52+
compile "org.omg.sysml:sysml-api-client:2019-05"
5353
```
5454

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

6363
Then manually install the following JARs:
6464

65-
* `target/sysml-api-client-0.1.0.jar`
65+
* `target/sysml-api-client-2019-05.jar`
6666
* `target/lib/*.jar`
6767

6868
## Getting Started
@@ -84,9 +84,9 @@ public class ElementApiExample {
8484
public static void main(String[] args) {
8585

8686
ElementApi apiInstance = new ElementApi();
87-
Element element = new Element(); // Element |
87+
Map<String, Object> requestBody = null; // Map<String, Object> |
8888
try {
89-
Element result = apiInstance.createElement(element);
89+
Element result = apiInstance.createElement(requestBody);
9090
System.out.println(result);
9191
} catch (ApiException e) {
9292
System.err.println("Exception when calling ElementApi#createElement");
@@ -103,26 +103,26 @@ All URIs are relative to *http://localhost*
103103

104104
Class | Method | HTTP request | Description
105105
------------ | ------------- | ------------- | -------------
106-
*ElementApi* | [**createElement**](docs/ElementApi.md#createElement) | **POST** /element | Add a new element
107-
*ElementApi* | [**getElement**](docs/ElementApi.md#getElement) | **GET** /element/{id} | Get element by its ID
108-
*ElementApi* | [**getElements**](docs/ElementApi.md#getElements) | **GET** /element | Get all elements
109-
*ElementApi* | [**getElementsInModel**](docs/ElementApi.md#getElementsInModel) | **GET** /element/model/{model_id} | Get all elements in the model
110-
*ModelApi* | [**createModel**](docs/ModelApi.md#createModel) | **POST** /model | Add a new model
111-
*ModelApi* | [**getModel**](docs/ModelApi.md#getModel) | **GET** /model/{id} | Get model by its ID
112-
*ModelApi* | [**getModels**](docs/ModelApi.md#getModels) | **GET** /model | Get all models
113-
*RelationshipApi* | [**createRelationship**](docs/RelationshipApi.md#createRelationship) | **POST** /relationship | Add a new relationship
114-
*RelationshipApi* | [**getRelationship**](docs/RelationshipApi.md#getRelationship) | **GET** /relationship/{id} | Get relationship by its ID
115-
*RelationshipApi* | [**getRelationships**](docs/RelationshipApi.md#getRelationships) | **GET** /relationship | Get all relationships
116-
*RelationshipApi* | [**getRelationshipsByElement**](docs/RelationshipApi.md#getRelationshipsByElement) | **GET** /relationship/element/{element_id} | Get all relationships with the given element as either source or target
117-
*RelationshipApi* | [**getRelationshipsBySource**](docs/RelationshipApi.md#getRelationshipsBySource) | **GET** /relationship/source/{source_id} | Get all relationships with the given element as the source
118-
*RelationshipApi* | [**getRelationshipsByTarget**](docs/RelationshipApi.md#getRelationshipsByTarget) | **GET** /relationship/target/{target_id} | Get all relationships with the given element as the target
106+
*ElementApi* | [**createElement**](docs/ElementApi.md#createElement) | **POST** /elements | Add a new element
107+
*ElementApi* | [**getElement**](docs/ElementApi.md#getElement) | **GET** /elements/{identifier} | Get element by its ID
108+
*ElementApi* | [**getElementByProjectAndId**](docs/ElementApi.md#getElementByProjectAndId) | **GET** /projects/{project_identifier}/elements/{element_identifier} | Get element by project ID and its ID
109+
*ElementApi* | [**getElements**](docs/ElementApi.md#getElements) | **GET** /elements | Get all elements
110+
*ElementApi* | [**getElementsInProject**](docs/ElementApi.md#getElementsInProject) | **GET** /projects/{project_identifier}/elements | Get all elements in the project
111+
*ProjectApi* | [**createProject**](docs/ProjectApi.md#createProject) | **POST** /projects | Add a new project
112+
*ProjectApi* | [**getProject**](docs/ProjectApi.md#getProject) | **GET** /projects/{identifier} | Get project by its ID
113+
*ProjectApi* | [**getProjects**](docs/ProjectApi.md#getProjects) | **GET** /projects | Get all projects
114+
*RelationshipApi* | [**createRelationship**](docs/RelationshipApi.md#createRelationship) | **POST** /relationships | Add a new relationship
115+
*RelationshipApi* | [**getRelationship**](docs/RelationshipApi.md#getRelationship) | **GET** /relationships/{identifier} | Get relationship by its ID
116+
*RelationshipApi* | [**getRelationships**](docs/RelationshipApi.md#getRelationships) | **GET** /relationships | Get all relationships
117+
*RelationshipApi* | [**getRelationshipsByProject**](docs/RelationshipApi.md#getRelationshipsByProject) | **GET** /projects/{project_identifier}/relationships | Get all relationships in the project
119118

120119

121120
## Documentation for Models
122121

123122
- [Element](docs/Element.md)
124123
- [Error](docs/Error.md)
125-
- [Model](docs/Model.md)
124+
- [Identified](docs/Identified.md)
125+
- [Project](docs/Project.md)
126126
- [Relationship](docs/Relationship.md)
127127

128128

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'org.omg.sysml'
5-
version = '0.1.0'
5+
version = '2019-05'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "org.omg.sysml",
44
name := "sysml-api-client",
5-
version := "0.1.0",
5+
version := "2019-05",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/Model.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/ModelApi.md

Lines changed: 0 additions & 136 deletions
This file was deleted.

gradlew

100755100644
File mode changed.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sysml-api-client</artifactId>
66
<packaging>jar</packaging>
77
<name>sysml-api-client</name>
8-
<version>0.1.0</version>
8+
<version>2019-05</version>
99
<url>https://github.com/openapitools/openapi-generator</url>
1010
<description>OpenAPI Java</description>
1111
<scm>

src/main/java/org/omg/sysml/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private void init() {
9898
json = new JSON();
9999

100100
// Set default User-Agent.
101-
setUserAgent("OpenAPI-Generator/0.1.0/java");
101+
setUserAgent("OpenAPI-Generator/2019-05/java");
102102

103103
authentications = new HashMap<String, Authentication>();
104104
}

0 commit comments

Comments
 (0)