1- # sysml-api-client
1+ # sysml-v2- api-client
22
33SysML v2 API and Services
44- API version: 1.0.0
@@ -38,8 +38,8 @@ Add this dependency to your project's POM:
3838``` xml
3939<dependency >
4040 <groupId >org.omg.sysml</groupId >
41- <artifactId >sysml-api-client</artifactId >
42- <version >2019-05 </version >
41+ <artifactId >sysml-v2- api-client</artifactId >
42+ <version >2019-09 </version >
4343 <scope >compile</scope >
4444</dependency >
4545```
@@ -49,7 +49,7 @@ Add this dependency to your project's POM:
4949Add this dependency to your project's build file:
5050
5151``` groovy
52- compile "org.omg.sysml:sysml-api-client:2019-05 "
52+ compile "org.omg.sysml:sysml-v2- api-client:2019-09 "
5353```
5454
5555### Others
@@ -62,7 +62,7 @@ mvn clean package
6262
6363Then manually install the following JARs:
6464
65- * ` target/sysml-api-client-2019-05 .jar `
65+ * ` target/sysml-v2- api-client-2019-09 .jar `
6666* ` target/lib/*.jar `
6767
6868## Getting Started
@@ -71,28 +71,31 @@ Please follow the [installation](#installation) instruction and execute the foll
7171
7272``` java
7373
74- import org.omg.sysml.* ;
75- import org.omg.sysml.auth.* ;
76- import org.omg.sysml.model.* ;
74+ // Import classes:
75+ import org.omg.sysml.ApiClient ;
76+ import org.omg.sysml.ApiException ;
77+ import org.omg.sysml.Configuration ;
78+ import org.omg.sysml.models.* ;
7779import org.omg.sysml.api.ElementApi ;
7880
79- import java.io.File ;
80- import java.util.* ;
81-
82- public class ElementApiExample {
83-
84- public static void main ( String [] args ) {
85-
86- ElementApi apiInstance = new ElementApi ();
87- Map< String , Object > requestBody = null ; // Map<String, Object> |
88- try {
89- Element result = apiInstance . createElement(requestBody);
90- System . out . println(result );
91- } catch ( ApiException e) {
92- System . err. println(" Exception when calling ElementApi#createElement " );
93- e . printStackTrace( );
94- }
81+ public class Example {
82+ public static void main ( String [] args ) {
83+ ApiClient defaultClient = Configuration . getDefaultApiClient();
84+ defaultClient . setBasePath( " http://localhost " );
85+
86+ ElementApi apiInstance = new ElementApi (defaultClient);
87+ Map< String , Object > body = null ; // Map<String, Object> |
88+ try {
89+ Element result = apiInstance . createElement(body);
90+ System . out . println(result);
91+ } catch ( ApiException e) {
92+ System . err . println(" Exception when calling ElementApi#createElement " );
93+ System . err . println( " Status code: " + e . getCode());
94+ System . err. println(" Reason: " + e . getResponseBody() );
95+ System . err . println( " Response headers: " + e . getResponseHeaders() );
96+ e . printStackTrace();
9597 }
98+ }
9699}
97100
98101```
@@ -124,6 +127,7 @@ Class | Method | HTTP request | Description
124127 - [ Identified] ( docs/Identified.md )
125128 - [ Project] ( docs/Project.md )
126129 - [ Relationship] ( docs/Relationship.md )
130+ - [ RelationshipAllOf] ( docs/RelationshipAllOf.md )
127131
128132
129133## Documentation for Authorization
0 commit comments