Skip to content

Repository files navigation

sysml-v2-api-client

REST/HTTP binding (PSM) for the SysML v2 standard API.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 2021-09
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

importsysml_v2_api_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

importsysml_v2_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ importprint_functionimporttimeimportsysml_v2_api_clientfromsysml_v2_api_client.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to http://localhost# See configuration.py for a list of all supported configuration parameters.configuration=sysml_v2_api_client.Configuration(
host="http://localhost"
)
# Enter a context with an instance of the API clientwithsysml_v2_api_client.ApiClient(configuration) asapi_client:
# Create an instance of the API classapi_instance=sysml_v2_api_client.BranchApi(api_client)
project_id='project_id_example'# str | ID of the projectbranch_id='branch_id_example'# str | ID of the branchtry:
# Delete branch by project and IDapi_response=api_instance.delete_branch_by_project_and_id(project_id, branch_id)
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling BranchApi->delete_branch_by_project_and_id: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
BranchApidelete_branch_by_project_and_idDELETE /projects/{projectId}/branches/{branchId}Delete branch by project and ID
BranchApiget_branches_by_projectGET /projects/{projectId}/branchesGet branches by project
BranchApiget_branches_by_project_and_idGET /projects/{projectId}/branches/{branchId}Get branch by project and ID
BranchApipost_branch_by_projectPOST /projects/{projectId}/branchesCreate branch by project
CommitApiget_commit_by_project_and_idGET /projects/{projectId}/commits/{commitId}Get commit by project and ID
CommitApiget_commits_by_projectGET /projects/{projectId}/commitsGet commits by project
CommitApipost_commit_by_projectPOST /projects/{projectId}/commitsCreate commit by project
ElementApiget_element_by_project_commit_idGET /projects/{projectId}/commits/{commitId}/elements/{elementId}Get element by project, commit and ID
ElementApiget_elements_by_project_commitGET /projects/{projectId}/commits/{commitId}/elementsGet elements by project and commit
ElementApiget_roots_by_project_commitGET /projects/{projectId}/commits/{commitId}/rootsGet root elements by project and commit
ProjectApidelete_project_by_idDELETE /projects/{projectId}Delete project by ID
ProjectApiget_project_by_idGET /projects/{projectId}Get project by ID
ProjectApiget_projectsGET /projectsGet projects
ProjectApipost_projectPOST /projectsCreate project
ProjectApiput_project_by_idPUT /projects/{projectId}Update project by ID
QueryApidelete_query_by_project_and_idDELETE /projects/{projectId}/queries/{queryId}Delete query by project and ID
QueryApiget_queries_by_projectGET /projects/{projectId}/queriesGet queries by project
QueryApiget_query_by_project_and_idGET /projects/{projectId}/queries/{queryId}Get query by project and ID
QueryApiget_query_results_by_project_id_queryGET /projects/{projectId}/query-resultsGet query results by project and query definition
QueryApiget_query_results_by_project_id_query_idGET /projects/{projectId}/queries/{queryId}/resultsGet query results by project and query
QueryApiget_query_results_by_project_id_query_postPOST /projects/{projectId}/query-resultsGet query results by project and query definition via POST
QueryApipost_query_by_projectPOST /projects/{projectId}/queriesCreate query by project
RelationshipApiget_relationships_by_project_commit_related_elementGET /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationshipsGet relationships by project, commit, and related element
TagApidelete_tag_by_project_and_idDELETE /projects/{projectId}/tags/{tagId}Delete tag by project and ID
TagApiget_tag_by_project_and_idGET /projects/{projectId}/tags/{tagId}Get tag by project and ID
TagApiget_tags_by_projectGET /projects/{projectId}/tagsGet tags by project
TagApipost_tag_by_projectPOST /projects/{projectId}/tagsCreate tag by project

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

Python client software for the Systems Modeling API.

Resources

Stars

60 stars

Watchers

19 watching

Forks

Releases

Packages

Used by

Contributors

Languages