Page 1 of 1

Rest API/osmc/swagger

PostPosted: Mon Jul 16, 2018 12:16 pm
I have been working with the TWC REST API in 18.5 and was wondering if anyone had done anything where I can pull just some information from each and every element on the trunk of the project.

I have the easy ones of


But was thinking of just doing some simple python to get a few things from each element

Was wondering if anyone has done anything similar I'd like
System assigned ID
Type(capability, program, project, etc.)

I'm starting to understand the Rest API but any help would be appreciated. I'm hoping someone may have already done some of this.

My guess is I could just run CURL via python and pull out the information.

Re: Rest API/osmc/swagger

PostPosted: Wed Jul 18, 2018 11:30 am
by thvo
Dear Chris,

If you want to pull all elements from a project, there is an example in Java available at ... src/master. Please see in modelloader directory.

For Python, I think it'd better to use Python to pull elements directly rather than use cURL because Python can perform HTTP request and most of the code is for parsing the result and traverse through a model hierarchy.

Best regards,

Re: Rest API/osmc/swagger

PostPosted: Wed Jul 18, 2018 12:49 pm
Thank you, we will tak a look at the bucket.