CLM 6.0 “Global Config behind the scenes”. First Results…

I’m working currently with Javascript and Global Config available in CLM 6.0. Let me share the first findings with you. Please keep in mind that this information is “reverse” engineering and it will change in later versions of DNG.

All examples here are Http GET and with the Header:

Accept: application/rdf+xml
OSLC-Core-Version: 2.0

Also for better readability I decoded some parts of the URL. It means when you try these examples you have to substitute the hostname (maybe also the port) and then you have to encode the URL.

Get the Details of a Global Config Project Area

This way is like opening the GC PA (i.e. https://ssejtsserver:9443/gc/web) and drill down from the Projects to the Streams.

  1. Get the GC Project Areas as user “rational” with https://ssejtsserver:9443/gc/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/allProjectAreas?userId=rational
  2. Bildschirmfoto 2015-10-30 um 11.28.27Get the Details “itemId” from the response

AllGCPA

  1. Create a new GET to “https://ssejtsserver:9443/gc/gc.webui.search?scope=STREAMS&q=*&projectAreasToSearch=CURRENT” with the Header “x-gc-project-id” and one of the values above.

Bildschirmfoto 2015-10-30 um 13.33.09

Get the details of a GC Strem https://ssejtsserver:9443/gc/gc.webui.getTreeNode?uri=https%3A%2F%2Fssejtsserver%3A9443%2Fgc%2Fconfiguration%2F34

Bildschirmfoto 2015-11-02 um 16.12.17

Find where a specific stream is used:

Bildschirmfoto 2015-10-30 um 13.54.17

Get the GC Details of one DNG Project Area:

  1. Get the UUID of a Project Area like _VdIZchvTEeW5XLpLPTR7rg
  2. Use this UUID and make a GET  https://ssejtsserver:9443/rm/queryvvc/configurationsforcomponent?component=https://ssejtsserver:9443/rm/process/project-areas/_VdIZchvTEeW5XLpLPTR7rg
  3. It is also possible to limit the results with configurationtype=workspace|baselines|snapshot like https://ssejtsserver:9443/rm/queryvvc/configurationsforcomponent?component=https://ssejtsserver:9443/rm/process/project-areas/_VdIZchvTEeW5XLpLPTR7rg&configurationtype=snapshot

Get the GC Details of a couple GC Streams:

https://ssejtsserver:9443/rm/queryvvc/configurationsdetails?configuration=https://ssejtsserver:9443/rm/cm/stream/_UTWEoDdjEeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/stream/_Vrb7MBvTEeW5XLpLPTR7rg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_mWY2gDdnEeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/stream/_H_It0BvUEeW5XLpLPTR7rg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_FSlvkDbREeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/stream/_m-5ggCVqEeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_LCOKgCV7EeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_7HVKMCVxEeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_DrXPgCVsEeWmCpBmMFd7xg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_4C2PACFfEeWKUMr0_N2bhg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_UvEkUB5qEeW5XLpLPTR7rg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_-5f8AB5lEeW5XLpLPTR7rg&configuration=https://ssejtsserver:9443/rm/cm/changeset/_g6KA8BvUEeW5XLpLPTR7rg

Get the GC Details of a  GC Changeset:

https://ssejtsserver:9443/rm/cm/changeset/_cxImwCFeEeWKUMr0_N2bhg

OSLC Query:

OSLC Queries will work as before but you have to include a new Parameter “oslc_config.context”. How to get this information? Look at an Artifact in a Stream and display the “Permalink” Information.

https://ssejtsserver:9443/rm/views?oslc.query=true&projectURL=https://ssejtsserver:9443/rm/process/project-areas/_VdIZchvTEeW5XLpLPTR7rg&oslc.prefix=rdf=<http://www.w3.org/1999/02/22-rdf-syntax-ns#&gt;,dcterms=<http://purl.org/dc/terms/&gt;,nav=<http://com.ibm.rdm/navigation#&gt;,rm_property=<https://ssejtsserver:9443/rm/types/>&oslc.select=*&oslc.where=rdf:type=<http://open-services.net/ns/rm#Requirement&gt;&oslc_config.context=https://ssejtsserver:9443/rm/cm/stream/_UTWEoDdjEeWmCpBmMFd7xg

Get all GC Streams:
https://ssejtsserver:9443/gc/view-history?user=rational&project=com.ibm.team.configuration.web.noprojectareascope&type=com.ibm.team.configuration.web.globaltype&size=25

Get Baselines of a Stream:
https://ssejtsserver:9443/gc/gc.webui.getConfiguration?uri=https://ssejtsserver:9443/gc/configuration/24&includeBaselines=true

Stream Details:
https://ssejtsserver:9443/gc/configuration/15

DNG Artifacts and GC:

Artifact “Base” URL and ID (dc:identifier) stay the same no matter if used in a Stream or not.

Get the GC DNG Details with GC URI at  oslc_config.context:

https://ssejtsserver:9443/rm/resources/_542abb234a494a96877d8a126f06b349?oslc_config.context=https%3A%2F%2Fssejtsserver%3A9443%2Fgc%2Fconfiguration%2F34

More will come…

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: