ThingTemplate - Get all properties of template using Java sdk
Hi,
I want to fetch the propertyDefinitions of a thingTemplate. I am calling GetMetadata service on the template -
client.invokeService(RelationshipTypes.ThingworxEntityTypes.ThingTemplates, "MyTemplateName", "GetMetadata", new ValueCollection(), DEFAULT_TIMEOUT);
This returns an empty propertyDefinitions infotable. The call works fine for entityType Things.
The rest call - GET <server>/Thingworx/ThingTemplates/MyTemplateName returns all the properties under path "effectiveShape/propertyDefinitions" in the response json.
How can I get the same using java sdk?
Regards,
Vaishnavee

