Create Module from Template with OSLC
![]()
Is there a way to create a new module using an existing Artifact Template via OSLC? This seems like it should be fairly straight forward but I cannot find any information on it.
|
Accepted answer
![]()
No, at this time, the creation of modules is not supported through the OSLC APIs.
Rosa Naranjo selected this answer as the correct answer
|
2 other answers
![]() It is, however, achievable with a mix of OSLC and RM REST APIs. |
![]() It is possible with the following POST request:
Headers:
DoorsRP-Request-Type: private
OSLC-Core-Version: 2.0
Configuration-Context: e.g.: https://server/rm/cm/changeset/XXXXX
Request URI:
Paramaters (Body):
title=MyNewMOduleName
targetFolder=https://server/rm/folders/FOLDER_ID
Full URI:
Comments ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The "DoorsRP-Request-Type: private" gives a clear indication that this is most likely an unsupported API subject to risk of change through versions and possibly iFixes. i.e. Caveat Emptor/use at your own risk, but preferably avoid. @Ian Barnard Thanks for the hint. We know that which forces us to run daily tests against the API. Why don't put such a useful function to the public API? There are certainly more complicated ways to achieve the same goal, but unfortunately this is not documented anywhere.
One possibility would be to specify the URI of a module as a template, create a new one and copy the artifacts of the template module, or manually append them as use in the RDF document.
What is the official way to create a module based on a template?
Hi Christian - you can create an Idea with your business case justifying the API here https://ibm-data-and-ai.ideas.ibm.com/ If there's an existing idea on the topic, suggest you upvote that rather than create a new one. |