Skip to content

Commit

Permalink
Built clean due to refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-gomes committed Jun 17, 2019
1 parent e6b129a commit 475b930
Show file tree
Hide file tree
Showing 14 changed files with 54 additions and 853 deletions.
38 changes: 19 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.omg.sysml</groupId>
<artifactId>sysml-api-client</artifactId>
<version>0.1.0</version>
<version>2019-05</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -49,7 +49,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "org.omg.sysml:sysml-api-client:0.1.0"
compile "org.omg.sysml:sysml-api-client:2019-05"
```

### Others
Expand All @@ -62,7 +62,7 @@ mvn clean package

Then manually install the following JARs:

* `target/sysml-api-client-0.1.0.jar`
* `target/sysml-api-client-2019-05.jar`
* `target/lib/*.jar`

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

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

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


## Documentation for Models

- [Element](docs/Element.md)
- [Error](docs/Error.md)
- [Model](docs/Model.md)
- [Identified](docs/Identified.md)
- [Project](docs/Project.md)
- [Relationship](docs/Relationship.md)


Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'org.omg.sysml'
version = '0.1.0'
version = '2019-05'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.omg.sysml",
name := "sysml-api-client",
version := "0.1.0",
version := "2019-05",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
12 changes: 0 additions & 12 deletions docs/Model.md

This file was deleted.

136 changes: 0 additions & 136 deletions docs/ModelApi.md

This file was deleted.

Empty file modified gradlew
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>sysml-api-client</artifactId>
<packaging>jar</packaging>
<name>sysml-api-client</name>
<version>0.1.0</version>
<version>2019-05</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
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 @@ -98,7 +98,7 @@ private void init() {
json = new JSON();

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

authentications = new HashMap<String, Authentication>();
}
Expand Down
Loading

0 comments on commit 475b930

Please sign in to comment.