Is there a way to return the path from my server plugin in a graphML format? Like the way it can be done in the usual REST endpoint by providing resultDataContents as "graph".
You can just create the graphml format and return it as a string. For an example on how to do it: