Rest api to copy a master lifecycle to existing assets in a community?
My existing assets have legacy review applied ,i plan to migrate to the master lifecycle created for the community.
The <server:port>/context/oslc url works me.
What i would like to know is the rest api to achieve the following :
1)Retrieve the master lifecycle created for a community(added in the scoping section of the lifecycle)
2)Get all the assets from the community which have to be migrated
3)Apply the master lifecycle to them
Please do let me know how i can achieve this.
The <server:port>/context/oslc url works me.
What i would like to know is the rest api to achieve the following :
1)Retrieve the master lifecycle created for a community(added in the scoping section of the lifecycle)
2)Get all the assets from the community which have to be migrated
3)Apply the master lifecycle to them
Please do let me know how i can achieve this.
2 answers
None of RAM's API provide administration actions.
That said, there is an internal way to get at them:
<server:port>/context/internal/masterLifecycles
<server:port>/context/internal/communities/<communityID>/lifecycles
They are internal .... so word of caution for you. You can get a Community's ID when you go to it on the web (check the URL).
Also, the URL above will require the Accept: application/rdf+xml and OSLC-CORE-VERION: 2.0
That said, there is an internal way to get at them:
<server:port>/context/internal/masterLifecycles
<server:port>/context/internal/communities/<communityID>/lifecycles
They are internal .... so word of caution for you. You can get a Community's ID when you go to it on the web (check the URL).
Also, the URL above will require the Accept: application/rdf+xml and OSLC-CORE-VERION: 2.0