Page 1 of 1

Get all Elements from TWC API

PostPosted: Mon Aug 02, 2021 10:31 am
I am trying to use the TWC API to determine if resources contain particular types of elements or diagrams. However the API does not seem to support accessing Elements without knowing their ID a priori. Is this true?

What I'd like to do is something like:
Code: Select all
GET: /osmc/resources/{resourceId}/elements/   

so that I can parse through those elements to find what I'm looking for.

There are many workspaces and many resources that I want to hunt through, and I was hoping there is a way to access all the element in a model. Is there some other way I can determine if particular types (or stereotypes) of elements are used using the API?

Re: Get all Elements from TWC API

PostPosted: Fri Sep 24, 2021 10:19 pm
How do you determine the <workspaceid> and the <resourceid> just from the user interface in cameo?