You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*ElementApi* | [**create_element**](docs/ElementApi.md#create_element) | **POST** /element | Add a new element
74
-
*ElementApi* | [**get_element**](docs/ElementApi.md#get_element) | **GET** /element/{id} | Get element by its ID
75
-
*ElementApi* | [**get_elements**](docs/ElementApi.md#get_elements) | **GET** /element | Get all elements
76
-
*ElementApi* | [**get_elements_in_model**](docs/ElementApi.md#get_elements_in_model) | **GET** /element/model/{model_id} | Get all elements in the model
77
-
*ModelApi* | [**create_model**](docs/ModelApi.md#create_model) | **POST** /model | Add a new model
78
-
*ModelApi* | [**get_model**](docs/ModelApi.md#get_model) | **GET** /model/{id} | Get model by its ID
79
-
*ModelApi* | [**get_models**](docs/ModelApi.md#get_models) | **GET** /model | Get all models
80
-
*RelationshipApi* | [**create_relationship**](docs/RelationshipApi.md#create_relationship) | **POST** /relationship | Add a new relationship
81
-
*RelationshipApi* | [**get_relationship**](docs/RelationshipApi.md#get_relationship) | **GET** /relationship/{id} | Get relationship by its ID
82
-
*RelationshipApi* | [**get_relationships**](docs/RelationshipApi.md#get_relationships) | **GET** /relationship | Get all relationships
83
-
*RelationshipApi* | [**get_relationships_by_element**](docs/RelationshipApi.md#get_relationships_by_element) | **GET** /relationship/element/{element_id} | Get all relationships with the given element as either source or target
84
-
*RelationshipApi* | [**get_relationships_by_source**](docs/RelationshipApi.md#get_relationships_by_source) | **GET** /relationship/source/{source_id} | Get all relationships with the given element as the source
85
-
*RelationshipApi* | [**get_relationships_by_target**](docs/RelationshipApi.md#get_relationships_by_target) | **GET** /relationship/target/{target_id} | Get all relationships with the given element as the target
76
+
*ElementApi* | [**create_element**](docs/ElementApi.md#create_element) | **POST** /elements | Add a new element
77
+
*ElementApi* | [**get_element**](docs/ElementApi.md#get_element) | **GET** /elements/{identifier} | Get element by its ID
78
+
*ElementApi* | [**get_element_by_project_and_id**](docs/ElementApi.md#get_element_by_project_and_id) | **GET** /projects/{project_identifier}/elements/{element_identifier} | Get element by project ID and its ID
79
+
*ElementApi* | [**get_elements**](docs/ElementApi.md#get_elements) | **GET** /elements | Get all elements
80
+
*ElementApi* | [**get_elements_in_project**](docs/ElementApi.md#get_elements_in_project) | **GET** /projects/{project_identifier}/elements | Get all elements in the project
81
+
*ProjectApi* | [**create_project**](docs/ProjectApi.md#create_project) | **POST** /projects | Add a new project
82
+
*ProjectApi* | [**get_project**](docs/ProjectApi.md#get_project) | **GET** /projects/{identifier} | Get project by its ID
83
+
*ProjectApi* | [**get_projects**](docs/ProjectApi.md#get_projects) | **GET** /projects | Get all projects
84
+
*RelationshipApi* | [**create_relationship**](docs/RelationshipApi.md#create_relationship) | **POST** /relationships | Add a new relationship
85
+
*RelationshipApi* | [**get_relationship**](docs/RelationshipApi.md#get_relationship) | **GET** /relationships/{identifier} | Get relationship by its ID
86
+
*RelationshipApi* | [**get_relationships**](docs/RelationshipApi.md#get_relationships) | **GET** /relationships | Get all relationships
87
+
*RelationshipApi* | [**get_relationships_by_project**](docs/RelationshipApi.md#get_relationships_by_project) | **GET** /projects/{project_identifier}/relationships | Get all relationships in the project
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
@@ -4,32 +4,34 @@ All URIs are relative to *http://localhost*
4
4
5
5
Method | HTTP request | Description
6
6
------------- | ------------- | -------------
7
-
[**create_element**](ElementApi.md#create_element) | **POST** /element | Add a new element
8
-
[**get_element**](ElementApi.md#get_element) | **GET** /element/{id} | Get element by its ID
9
-
[**get_elements**](ElementApi.md#get_elements) | **GET** /element | Get all elements
10
-
[**get_elements_in_model**](ElementApi.md#get_elements_in_model) | **GET** /element/model/{model_id} | Get all elements in the model
7
+
[**create_element**](ElementApi.md#create_element) | **POST** /elements | Add a new element
8
+
[**get_element**](ElementApi.md#get_element) | **GET** /elements/{identifier} | Get element by its ID
9
+
[**get_element_by_project_and_id**](ElementApi.md#get_element_by_project_and_id) | **GET** /projects/{project_identifier}/elements/{element_identifier} | Get element by project ID and its ID
10
+
[**get_elements**](ElementApi.md#get_elements) | **GET** /elements | Get all elements
11
+
[**get_elements_in_project**](ElementApi.md#get_elements_in_project) | **GET** /projects/{project_identifier}/elements | Get all elements in the project
**415** | The requested content type is not acceptable. | - |
64
+
**500** | Internal server error. | - |
65
+
**0** | Unexpected response. | - |
66
+
57
67
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
58
68
59
69
# **get_element**
60
-
> Element get_element(id)
70
+
> Element get_element(identifier)
61
71
62
72
Get element by its ID
63
73
64
74
### Example
75
+
65
76
```python
66
77
from__future__import print_function
67
78
import time
68
79
import sysml_v2_api_client
69
80
from sysml_v2_api_client.rest import ApiException
70
81
from pprint import pprint
71
82
72
-
#create an instance of the API class
83
+
#Create an instance of the API class
73
84
api_instance = sysml_v2_api_client.ElementApi()
74
-
id='id_example'# str | ID of the element
85
+
identifier='identifier_example'# str | ID of the element
**415** | The requested content type is not acceptable. | - |
120
+
**500** | Internal server error. | - |
121
+
**0** | Unexpected response. | - |
122
+
123
+
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
124
+
125
+
# **get_element_by_project_and_id**
126
+
> Element get_element_by_project_and_id(project_identifier, element_identifier)
127
+
128
+
Get element by project ID and its ID
129
+
130
+
### Example
131
+
132
+
```python
133
+
from__future__import print_function
134
+
import time
135
+
import sysml_v2_api_client
136
+
from sysml_v2_api_client.rest import ApiException
137
+
from pprint import pprint
138
+
139
+
# Create an instance of the API class
140
+
api_instance = sysml_v2_api_client.ElementApi()
141
+
project_identifier ='project_identifier_example'# str | ID of the project
142
+
element_identifier ='element_identifier_example'# str | ID of the element
**project_identifier** | **str**| ID of the project |
157
+
**element_identifier** | **str**| ID of the element |
158
+
159
+
### Return type
160
+
161
+
[**Element**](Element.md)
162
+
163
+
### Authorization
164
+
165
+
No authorization required
166
+
167
+
### HTTP request headers
168
+
169
+
-**Content-Type**: Not defined
170
+
-**Accept**: application/json
171
+
172
+
### HTTP response details
173
+
| Status code | Description | Response headers |
174
+
|-------------|-------------|------------------|
175
+
**200** | Ok | - |
176
+
**404** | Not found. | - |
177
+
**415** | The requested content type is not acceptable. | - |
178
+
**500** | Internal server error. | - |
179
+
**0** | Unexpected response. | - |
180
+
103
181
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
104
182
105
183
# **get_elements**
@@ -108,14 +186,15 @@ No authorization required
108
186
Get all elements
109
187
110
188
### Example
189
+
111
190
```python
112
191
from__future__import print_function
113
192
import time
114
193
import sysml_v2_api_client
115
194
from sysml_v2_api_client.rest import ApiException
116
195
from pprint import pprint
117
196
118
-
#create an instance of the API class
197
+
#Create an instance of the API class
119
198
api_instance = sysml_v2_api_client.ElementApi()
120
199
121
200
try:
@@ -142,38 +221,47 @@ No authorization required
142
221
-**Content-Type**: Not defined
143
222
-**Accept**: application/json
144
223
224
+
### HTTP response details
225
+
| Status code | Description | Response headers |
226
+
|-------------|-------------|------------------|
227
+
**200** | Ok | - |
228
+
**415** | The requested content type is not acceptable. | - |
229
+
**500** | Internal server error. | - |
230
+
**0** | Unexpected response. | - |
231
+
145
232
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
146
233
147
-
# **get_elements_in_model**
148
-
> Element get_elements_in_model(model_id)
234
+
# **get_elements_in_project**
235
+
> Element get_elements_in_project(project_identifier)
149
236
150
-
Get all elements in the model
237
+
Get all elements in the project
151
238
152
239
### Example
240
+
153
241
```python
154
242
from__future__import print_function
155
243
import time
156
244
import sysml_v2_api_client
157
245
from sysml_v2_api_client.rest import ApiException
158
246
from pprint import pprint
159
247
160
-
#create an instance of the API class
248
+
#Create an instance of the API class
161
249
api_instance = sysml_v2_api_client.ElementApi()
162
-
model_id='model_id_example'# str | ID of the model
250
+
project_identifier='project_identifier_example'# str | ID of the project
**project_identifier** | **str**| ID of the project |
177
265
178
266
### Return type
179
267
@@ -188,5 +276,14 @@ No authorization required
188
276
-**Content-Type**: Not defined
189
277
-**Accept**: application/json
190
278
279
+
### HTTP response details
280
+
| Status code | Description | Response headers |
281
+
|-------------|-------------|------------------|
282
+
**200** | Ok | - |
283
+
**404** | Not found. | - |
284
+
**415** | The requested content type is not acceptable. | - |
285
+
**500** | Internal server error. | - |
286
+
**0** | Unexpected response. | - |
287
+
191
288
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments