Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Get diagram picture from DM with OSLC

Hi,

Is it possible to get a diagram picture from Design Manager using an OSLC query? and how?

Thanks,
Oded Mozesh


0 votes



One answer

Permanent link
The recommended way is to use the OSLC specifications to get the Diagram preview which includes in the expanded form the diagram image.
The URI will be something like this:
https://localhost:9443/dm/_ajax-modules/rmps.web.app.ResourceLinkViewer?resourceUri=https%3A%2F%2Flocalhost%3A9443%2Fdm%2Fmodels%2F_qQ9Bwgp8EeWGMPdW6ZQc2w~GUID__613d0d38-d350-4ad4-9720-0ef268204eec&isExpanded=true&projectArea=Rhapsody%20Sample%20Project&rmps.context=https%3A%2F%2Flocalhost%3A9443%2Fdm%2Fstreams%2F10

If you want the image only, you can use the following API (internal, subject to change):
https://<localhost>:9443/dm/diagrams/image?diagramUri=<encoded diagram uri>&rmps.context=<encoded context uri>
ex.
https://localhost:9443/dm/diagrams/image?diagramUri=https%3A%2F%2Flocalhost%3A9443%2Fdm%2Fmodels%2F_qQ9Bwgp8EeWGMPdW6ZQc2w~GUID__613d0d38-d350-4ad4-9720-0ef268204eec&rmps.context=https%3A%2F%2Flocalhost%3A9443%2Fdm%2Fstreams%2F10

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,020
× 516
× 60

Question asked: Jan 21 '15, 5:14 a.m.

Question was seen: 4,123 times

Last updated: Jun 04 '15, 3:41 a.m.

Confirmation Cancel Confirm