Systems Modeling API and Services
- API version: 1.0
- Generator version: 7.13.0-SNAPSHOT
REST/HTTP platform specific model (PSM) for the Systems Modeling API and Services
Automatically generated by the OpenAPI Generator
Building the API client library requires:
- Java 1.8+
- Maven (3.8.3+)/Gradle (7.2+)
To install the API client library to your local Maven repository, simply execute:
mvn clean installTo deploy it to a remote Maven repository instead, configure the settings of the repository and execute:
mvn clean deployRefer to the OSSRH Guide for more information.
Add this dependency to your project's POM:
<dependency>
<groupId>org.omg.sysml</groupId>
<artifactId>sysml-v2-api-client</artifactId>
<version>20250201</version>
<scope>compile</scope>
</dependency>Add this dependency to your project's build file:
repositories {
mavenCentral() // Needed if the 'sysml-v2-api-client' jar has been published to maven central.
mavenLocal() // Needed if the 'sysml-v2-api-client' jar has been published to the local maven repo.
}
dependencies {
implementation "org.omg.sysml:sysml-v2-api-client:20250201"
}At first generate the JAR by executing:
mvn clean packageThen manually install the following JARs:
target/sysml-v2-api-client-20250201.jartarget/lib/*.jar
Please follow the installation instruction and execute the following Java code:
// Import classes:
import org.omg.sysml.ApiClient;
import org.omg.sysml.ApiException;
import org.omg.sysml.Configuration;
import org.omg.sysml.model.*;
import org.omg.sysml.api.BranchApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
BranchApi apiInstance = new BranchApi(defaultClient);
UUID projectId = UUID.randomUUID(); // UUID | ID of the project
UUID branchId = UUID.randomUUID(); // UUID | ID of the branch
try {
Branch result = apiInstance.deleteBranchByProjectAndId(projectId, branchId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling BranchApi#deleteBranchByProjectAndId");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BranchApi | deleteBranchByProjectAndId | DELETE /projects/{projectId}/branches/{branchId} | Delete branch by project and ID |
| BranchApi | getBranchesByProject | GET /projects/{projectId}/branches | Get branches by project |
| BranchApi | getBranchesByProjectAndId | GET /projects/{projectId}/branches/{branchId} | Get branch by project and ID |
| BranchApi | postBranchByProject | POST /projects/{projectId}/branches | Create branch by project |
| CommitApi | getChangeByProjectCommitId | GET /projects/{projectId}/commits/{commitId}/changes/{changeId} | Get change by project, commit and ID |
| CommitApi | getChangesByProjectCommit | GET /projects/{projectId}/commits/{commitId}/changes | Get changes by project and commit |
| CommitApi | getCommitByProjectAndId | GET /projects/{projectId}/commits/{commitId} | Get commit by project and ID |
| CommitApi | getCommitsByProject | GET /projects/{projectId}/commits | Get commits by project |
| CommitApi | postCommitByProject | POST /projects/{projectId}/commits | Create commit by project |
| DiffMergeApi | diff | GET /projects/{projectId}/commits/{compareCommitId}/diff | Diff a base commit and compare commit |
| DiffMergeApi | merge | POST /projects/{projectId}/branches/{targetBranchId}/merge | Merge source commit(s) into a target branch |
| ElementApi | getElementByProjectCommitId | GET /projects/{projectId}/commits/{commitId}/elements/{elementId} | Get element by project, commit and ID |
| ElementApi | getElementsByProjectCommit | GET /projects/{projectId}/commits/{commitId}/elements | Get elements by project and commit |
| ElementApi | getProjectUsageByProjectCommitElement | GET /projects/{projectId}/commits/{commitId}/elements/{elementId}/projectUsage | Get ProjectUsage that originates the provided element |
| ElementApi | getRootsByProjectCommit | GET /projects/{projectId}/commits/{commitId}/roots | Get root elements by project and commit |
| MetaApi | getDatatypeById | GET /meta/datatypes/{datatypeId} | Get datatype by ID |
| MetaApi | getDatatypes | GET /meta/datatypes | Get datatypes |
| ProjectApi | deleteProjectById | DELETE /projects/{projectId} | Delete project by ID |
| ProjectApi | getProjectById | GET /projects/{projectId} | Get project by ID |
| ProjectApi | getProjects | GET /projects | Get projects |
| ProjectApi | postProject | POST /projects | Create project |
| ProjectApi | putProjectById | PUT /projects/{projectId} | Update project by ID |
| QueryApi | deleteQueryByProjectAndId | DELETE /projects/{projectId}/queries/{queryId} | Delete query by project and ID |
| QueryApi | getQueriesByProject | GET /projects/{projectId}/queries | Get queries by project |
| QueryApi | getQueryByProjectAndId | GET /projects/{projectId}/queries/{queryId} | Get query by project and ID |
| QueryApi | getQueryResultsByProjectIdQuery | GET /projects/{projectId}/query-results | Get query results by project and query definition |
| QueryApi | getQueryResultsByProjectIdQueryId | GET /projects/{projectId}/queries/{queryId}/results | Get query results by project and query |
| QueryApi | getQueryResultsByProjectIdQueryPost | POST /projects/{projectId}/query-results | Get query results by project and query definition via POST |
| QueryApi | postQueryByProject | POST /projects/{projectId}/queries | Create query by project |
| QueryApi | putQueryByProjectAndId | PUT /projects/{projectId}/queries/{queryId} | Update project by project and ID |
| RelationshipApi | getRelationshipsByProjectCommitRelatedElement | GET /projects/{projectId}/commits/{commitId}/elements/{relatedElementId}/relationships | Get relationships by project, commit, and related element |
| TagApi | deleteTagByProjectAndId | DELETE /projects/{projectId}/tags/{tagId} | Delete tag by project and ID |
| TagApi | getTagByProjectAndId | GET /projects/{projectId}/tags/{tagId} | Get tag by project and ID |
| TagApi | getTagsByProject | GET /projects/{projectId}/tags | Get tags by project |
| TagApi | postTagByProject | POST /projects/{projectId}/tags | Create tag by project |
- AcceptActionUsage
- AcceptActionUsageRequest
- ActionDefinition
- ActionDefinitionAnyOf
- ActionDefinitionRequest
- ActionDefinitionRequestAnyOf
- ActionDefinitionRequestAnyOfDeclaredShortName
- ActionDefinitionRequestAnyOfIsConjugated
- ActionUsage
- ActionUsageAnyOf
- ActionUsageRequest
- ActionUsageRequestAnyOf
- ActionUsageRequestAnyOfMultiplicity
- ActorMembership
- ActorMembershipRequest
- AllocationDefinition
- AllocationDefinitionRequest
- AllocationUsage
- AllocationUsageRequest
- AnalysisCaseDefinition
- AnalysisCaseDefinitionRequest
- AnalysisCaseUsage
- AnalysisCaseUsageRequest
- AnnotatingElement
- AnnotatingElementAnyOf
- AnnotatingElementRequest
- AnnotatingElementRequestAnyOf
- Annotation
- AnnotationRequest
- AssertConstraintUsage
- AssertConstraintUsageAnyOf
- AssertConstraintUsageAnyOfDirection
- AssertConstraintUsageAnyOfPortionKind
- AssertConstraintUsageRequest
- AssertConstraintUsageRequestAnyOf
- AssertConstraintUsageRequestAnyOfDirection
- AssertConstraintUsageRequestAnyOfPortionKind
- AssignmentActionUsage
- AssignmentActionUsageRequest
- Association
- AssociationAnyOf
- AssociationRequest
- AssociationRequestAnyOf
- AssociationStructure
- AssociationStructureAnyOf
- AssociationStructureRequest
- AssociationStructureRequestAnyOf
- AttributeDefinition
- AttributeDefinitionAnyOf
- AttributeDefinitionRequest
- AttributeDefinitionRequestAnyOf
- AttributeUsage
- AttributeUsageAnyOf
- AttributeUsageRequest
- AttributeUsageRequestAnyOf
- Behavior
- BehaviorAnyOf
- BehaviorRequest
- BehaviorRequestAnyOf
- BindingConnector
- BindingConnectorAnyOf
- BindingConnectorAsUsage
- BindingConnectorAsUsageRequest
- BindingConnectorRequest
- BindingConnectorRequestAnyOf
- BooleanExpression
- BooleanExpressionAnyOf
- BooleanExpressionRequest
- BooleanExpressionRequestAnyOf
- Branch
- BranchRequest
- CalculationDefinition
- CalculationDefinitionAnyOf
- CalculationDefinitionRequest
- CalculationDefinitionRequestAnyOf
- CalculationUsage
- CalculationUsageAnyOf
- CalculationUsageRequest
- CalculationUsageRequestAnyOf
- CaseDefinition
- CaseDefinitionAnyOf
- CaseDefinitionRequest
- CaseDefinitionRequestAnyOf
- CaseUsage
- CaseUsageAnyOf
- CaseUsageRequest
- CaseUsageRequestAnyOf
- ClassAnyOf
- ClassRequest
- ClassRequestAnyOf
- Classifier
- ClassifierAnyOf
- ClassifierRequest
- ClassifierRequestAnyOf
- CollectExpression
- CollectExpressionRequest
- Comment
- CommentAnyOf
- CommentRequest
- CommentRequestAnyOf
- Commit
- CommitRequest
- CompositeConstraint
- CompositeConstraintRequest
- ConcernDefinition
- ConcernDefinitionRequest
- ConcernUsage
- ConcernUsageRequest
- ConjugatedPortDefinition
- ConjugatedPortDefinitionRequest
- ConjugatedPortTyping
- ConjugatedPortTypingRequest
- Conjugation
- ConjugationAnyOf
- ConjugationRequest
- ConjugationRequestAnyOf
- ConnectionDefinition
- ConnectionDefinitionAnyOf
- ConnectionDefinitionRequest
- ConnectionDefinitionRequestAnyOf
- ConnectionUsage
- ConnectionUsageAnyOf
- ConnectionUsageRequest
- ConnectionUsageRequestAnyOf
- Connector
- ConnectorAnyOf
- ConnectorAsUsage
- ConnectorAsUsageAnyOf
- ConnectorAsUsageRequest
- ConnectorAsUsageRequestAnyOf
- ConnectorRequest
- ConnectorRequestAnyOf
- Constraint
- ConstraintDefinition
- ConstraintDefinitionAnyOf
- ConstraintDefinitionRequest
- ConstraintDefinitionRequestAnyOf
- ConstraintRequest
- ConstraintUsage
- ConstraintUsageAnyOf
- ConstraintUsageRequest
- ConstraintUsageRequestAnyOf
- ConstructorExpression
- ConstructorExpressionRequest
- ControlNode
- ControlNodeAnyOf
- ControlNodeRequest
- ControlNodeRequestAnyOf
- CrossSubsetting
- CrossSubsettingRequest
- Data
- DataDifference
- DataIdentity
- DataIdentityRequest
- DataRequest
- DataType
- DataTypeAnyOf
- DataTypeRequest
- DataTypeRequestAnyOf
- DataVersion
- DataVersionRequest
- DecisionNode
- DecisionNodeRequest
- Definition
- DefinitionAnyOf
- DefinitionRequest
- DefinitionRequestAnyOf
- Dependency
- DependencyRequest
- Differencing
- DifferencingRequest
- Disjoining
- DisjoiningRequest
- Documentation
- DocumentationRequest
- Element
- ElementAnyOf
- ElementFilterMembership
- ElementFilterMembershipRequest
- ElementRequest
- ElementRequestAnyOf
- EndFeatureMembership
- EndFeatureMembershipRequest
- EnumerationDefinition
- EnumerationDefinitionRequest
- EnumerationUsage
- EnumerationUsageRequest
- Error
- EventOccurrenceUsage
- EventOccurrenceUsageAnyOf
- EventOccurrenceUsageRequest
- EventOccurrenceUsageRequestAnyOf
- ExhibitStateUsage
- ExhibitStateUsageRequest
- Expose
- ExposeAnyOf
- ExposeRequest
- ExposeRequestAnyOf
- Expression
- ExpressionAnyOf
- ExpressionRequest
- ExpressionRequestAnyOf
- ExternalData
- ExternalDataRequest
- ExternalRelationship
- ExternalRelationshipRequest
- Feature
- FeatureAnyOf
- FeatureChainExpression
- FeatureChainExpressionRequest
- FeatureChaining
- FeatureChainingRequest
- FeatureDirectionKind
- FeatureDirectionKindRequest
- FeatureInverting
- FeatureInvertingRequest
- FeatureMembership
- FeatureMembershipAnyOf
- FeatureMembershipAnyOfVisibility
- FeatureMembershipRequest
- FeatureMembershipRequestAnyOf
- FeatureMembershipRequestAnyOfVisibility
- FeatureReferenceExpression
- FeatureReferenceExpressionRequest
- FeatureRequest
- FeatureRequestAnyOf
- FeatureTyping
- FeatureTypingAnyOf
- FeatureTypingRequest
- FeatureTypingRequestAnyOf
- FeatureValue
- FeatureValueRequest
- Flow
- FlowAnyOf
- FlowDefinition
- FlowDefinitionRequest
- FlowEnd
- FlowEndRequest
- FlowRequest
- FlowRequestAnyOf
- FlowUsage
- FlowUsageAnyOf
- FlowUsageRequest
- FlowUsageRequestAnyOf
- ForLoopActionUsage
- ForLoopActionUsageRequest
- ForkNode
- ForkNodeRequest
- FramedConcernMembership
- FramedConcernMembershipRequest
- Function
- FunctionAnyOf
- FunctionRequest
- FunctionRequestAnyOf
- GetDatatypeById200Response
- GetDatatypes200Response
- Identified
- IfActionUsage
- IfActionUsageRequest
- ImportAnyOf
- ImportRequest
- ImportRequestAnyOf
- IncludeUseCaseUsage
- IncludeUseCaseUsageRequest
- IndexExpression
- IndexExpressionRequest
- InstantiationExpression
- InstantiationExpressionAnyOf
- InstantiationExpressionRequest
- InstantiationExpressionRequestAnyOf
- Interaction
- InteractionAnyOf
- InteractionRequest
- InteractionRequestAnyOf
- InterfaceDefinition
- InterfaceDefinitionRequest
- InterfaceUsage
- InterfaceUsageRequest
- Intersecting
- IntersectingRequest
- Invariant
- InvariantAnyOf
- InvariantRequest
- InvariantRequestAnyOf
- InvocationExpression
- InvocationExpressionAnyOf
- InvocationExpressionRequest
- InvocationExpressionRequestAnyOf
- ItemDefinition
- ItemDefinitionAnyOf
- ItemDefinitionRequest
- ItemDefinitionRequestAnyOf
- ItemUsage
- ItemUsageAnyOf
- ItemUsageRequest
- ItemUsageRequestAnyOf
- JoinNode
- JoinNodeRequest
- LibraryPackage
- LibraryPackageRequest
- LiteralBoolean
- LiteralBooleanRequest
- LiteralExpression
- LiteralExpressionAnyOf
- LiteralExpressionRequest
- LiteralExpressionRequestAnyOf
- LiteralInfinity
- LiteralInfinityRequest
- LiteralInteger
- LiteralIntegerRequest
- LiteralRational
- LiteralRationalRequest
- LiteralString
- LiteralStringRequest
- LoopActionUsage
- LoopActionUsageAnyOf
- LoopActionUsageRequest
- LoopActionUsageRequestAnyOf
- Membership
- MembershipAnyOf
- MembershipExpose
- MembershipExposeRequest
- MembershipImport
- MembershipImportAnyOf
- MembershipImportRequest
- MembershipImportRequestAnyOf
- MembershipRequest
- MembershipRequestAnyOf
- MergeNode
- MergeNodeRequest
- Metaclass
- MetaclassAnyOf
- MetaclassRequest
- MetaclassRequestAnyOf
- MetadataAccessExpression
- MetadataAccessExpressionRequest
- MetadataDefinition
- MetadataDefinitionRequest
- MetadataFeature
- MetadataFeatureAnyOf
- MetadataFeatureRequest
- MetadataFeatureRequestAnyOf
- MetadataUsage
- MetadataUsageRequest
- ModelClass
- ModelImport
- ModelPackage
- Multiplicity
- MultiplicityAnyOf
- MultiplicityRange
- MultiplicityRangeRequest
- MultiplicityRequest
- MultiplicityRequestAnyOf
- Namespace
- NamespaceAnyOf
- NamespaceExpose
- NamespaceExposeRequest
- NamespaceImport
- NamespaceImportAnyOf
- NamespaceImportRequest
- NamespaceImportRequestAnyOf
- NamespaceRequest
- NamespaceRequestAnyOf
- NullExpression
- NullExpressionRequest
- ObjectiveMembership
- ObjectiveMembershipRequest
- OccurrenceDefinition
- OccurrenceDefinitionAnyOf
- OccurrenceDefinitionRequest
- OccurrenceDefinitionRequestAnyOf
- OccurrenceUsage
- OccurrenceUsageAnyOf
- OccurrenceUsageRequest
- OccurrenceUsageRequestAnyOf
- OperatorExpression
- OperatorExpressionAnyOf
- OperatorExpressionRequest
- OperatorExpressionRequestAnyOf
- OwningMembership
- OwningMembershipAnyOf
- OwningMembershipRequest
- OwningMembershipRequestAnyOf
- PackageAnyOf
- PackageRequest
- PackageRequestAnyOf
- ParameterMembership
- ParameterMembershipAnyOf
- ParameterMembershipRequest
- ParameterMembershipRequestAnyOf
- PartDefinition
- PartDefinitionAnyOf
- PartDefinitionRequest
- PartDefinitionRequestAnyOf
- PartUsage
- PartUsageAnyOf
- PartUsageRequest
- PartUsageRequestAnyOf
- PayloadFeature
- PayloadFeatureRequest
- PerformActionUsage
- PerformActionUsageAnyOf
- PerformActionUsageRequest
- PerformActionUsageRequestAnyOf
- PortConjugation
- PortConjugationRequest
- PortDefinition
- PortDefinitionAnyOf
- PortDefinitionRequest
- PortDefinitionRequestAnyOf
- PortUsage
- PortUsageRequest
- PortionKind
- PortionKindRequest
- Predicate
- PredicateAnyOf
- PredicateRequest
- PredicateRequestAnyOf
- PrimitiveConstraint
- PrimitiveConstraintRequest
- PrimitiveConstraintValueInner
- Project
- ProjectRequest
- ProjectUsage
- ProjectUsageRequest
- Query
- QueryRequest
- Redefinition
- RedefinitionRequest
- ReferenceSubsetting
- ReferenceSubsettingRequest
- ReferenceUsage
- ReferenceUsageRequest
- Relationship
- RelationshipAnyOf
- RelationshipRequest
- RelationshipRequestAnyOf
- RenderingDefinition
- RenderingDefinitionRequest
- RenderingUsage
- RenderingUsageRequest
- RequirementConstraintKind
- RequirementConstraintKindRequest
- RequirementConstraintMembership
- RequirementConstraintMembershipAnyOf
- RequirementConstraintMembershipRequest
- RequirementConstraintMembershipRequestAnyOf
- RequirementDefinition
- RequirementDefinitionAnyOf
- RequirementDefinitionRequest
- RequirementDefinitionRequestAnyOf
- RequirementUsage
- RequirementUsageAnyOf
- RequirementUsageRequest
- RequirementUsageRequestAnyOf
- RequirementVerificationMembership
- RequirementVerificationMembershipRequest
- ResultExpressionMembership
- ResultExpressionMembershipRequest
- ReturnParameterMembership
- ReturnParameterMembershipRequest
- SatisfyRequirementUsage
- SatisfyRequirementUsageRequest
- SelectExpression
- SelectExpressionRequest
- SendActionUsage
- SendActionUsageRequest
- Specialization
- SpecializationAnyOf
- SpecializationRequest
- SpecializationRequestAnyOf
- StakeholderMembership
- StakeholderMembershipRequest
- StateDefinition
- StateDefinitionRequest
- StateSubactionKind
- StateSubactionKindRequest
- StateSubactionMembership
- StateSubactionMembershipRequest
- StateUsage
- StateUsageAnyOf
- StateUsageRequest
- StateUsageRequestAnyOf
- Step
- StepAnyOf
- StepRequest
- StepRequestAnyOf
- Structure
- StructureAnyOf
- StructureRequest
- StructureRequestAnyOf
- Subclassification
- SubclassificationRequest
- SubjectMembership
- SubjectMembershipRequest
- Subsetting
- SubsettingAnyOf
- SubsettingRequest
- SubsettingRequestAnyOf
- Succession
- SuccessionAnyOf
- SuccessionAsUsage
- SuccessionAsUsageRequest
- SuccessionFlow
- SuccessionFlowAnyOf
- SuccessionFlowRequest
- SuccessionFlowRequestAnyOf
- SuccessionFlowUsage
- SuccessionFlowUsageRequest
- SuccessionRequest
- SuccessionRequestAnyOf
- Tag
- TagRequest
- TerminateActionUsage
- TerminateActionUsageRequest
- TextualRepresentation
- TextualRepresentationRequest
- TransitionFeatureKind
- TransitionFeatureKindRequest
- TransitionFeatureMembership
- TransitionFeatureMembershipRequest
- TransitionUsage
- TransitionUsageRequest
- TriggerInvocationExpression
- TriggerInvocationExpressionRequest
- TriggerKind
- TriggerKindRequest
- Type
- TypeAnyOf
- TypeFeaturing
- TypeFeaturingRequest
- TypeRequest
- TypeRequestAnyOf
- Unioning
- UnioningRequest
- Usage
- UsageAnyOf
- UsageRequest
- UsageRequestAnyOf
- UseCaseDefinition
- UseCaseDefinitionRequest
- UseCaseUsage
- UseCaseUsageAnyOf
- UseCaseUsageRequest
- UseCaseUsageRequestAnyOf
- VariantMembership
- VariantMembershipRequest
- VerificationCaseDefinition
- VerificationCaseDefinitionRequest
- VerificationCaseUsage
- VerificationCaseUsageRequest
- ViewDefinition
- ViewDefinitionRequest
- ViewRenderingMembership
- ViewRenderingMembershipRequest
- ViewUsage
- ViewUsageRequest
- ViewpointDefinition
- ViewpointDefinitionRequest
- ViewpointUsage
- ViewpointUsageRequest
- VisibilityKind
- VisibilityKindRequest
- WhileLoopActionUsage
- WhileLoopActionUsageRequest
Endpoints do not require authorization.
It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.