All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| deleteProjectById | DELETE /projects/{projectId} | Delete project by ID |
| getProjectById | GET /projects/{projectId} | Get project by ID |
| getProjects | GET /projects | Get projects |
| postProject | POST /projects | Create project |
| putProjectById | PUT /projects/{projectId} | Update project by ID |
Project deleteProjectById(projectId)
Delete project by ID
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
ProjectApi apiInstance = new ProjectApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
try {
Project result = apiInstance.deleteProjectById(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#deleteProjectById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | UUID | ID of the project |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/ld+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 404 | Not found. | - |
| 415 | The requested content type is not acceptable. | - |
| 500 | Internal server error. | - |
| 0 | Unexpected response. | - |
Project getProjectById(projectId)
Get project by ID
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
ProjectApi apiInstance = new ProjectApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
try {
Project result = apiInstance.getProjectById(projectId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#getProjectById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | UUID | ID of the project |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/ld+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 404 | Not found. | - |
| 415 | The requested content type is not acceptable. | - |
| 500 | Internal server error. | - |
| 0 | Unexpected response. | - |
List<Project> getProjects(pageAfter, pageBefore, pageSize)
Get projects
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
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(pageAfter, pageBefore, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#getProjects");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| pageAfter | String | Page after | [optional] |
| pageBefore | String | Page before | [optional] |
| pageSize | Integer | Page size | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json, application/ld+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 415 | The requested content type is not acceptable. | - |
| 500 | Internal server error. | - |
| 0 | Unexpected response. | - |
Project postProject(body)
Create project
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
ProjectApi apiInstance = new ProjectApi(defaultClient);
Project body = new Project(); // Project |
try {
Project result = apiInstance.postProject(body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#postProject");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| body | Project | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, application/ld+json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Created | - |
| 415 | The requested content type is not acceptable. | - |
| 500 | Internal server error. | - |
| 0 | Unexpected response. | - |
Project putProjectById(projectId, body)
Update project by ID
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.models.*;
import org.omg.sysml.api.ProjectApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
ProjectApi apiInstance = new ProjectApi(defaultClient);
UUID projectId = new UUID(); // UUID | ID of the project
Project body = new Project(); // Project |
try {
Project result = apiInstance.putProjectById(projectId, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ProjectApi#putProjectById");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| projectId | UUID | ID of the project | |
| body | Project | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json, application/ld+json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Ok | - |
| 415 | The requested content type is not acceptable. | - |
| 500 | Internal server error. | - |
| 0 | Unexpected response. | - |