Retrieving BuddyFiles from files endpoint?

Started by rebus, March 17, 2019, 07:33:07 PM

Previous topic - Next topic

rebus

The docs show how the buddy files for a given file can be retrieved using the variables endpoint:

http://127.0.0.1:50519/v1/variables?{auth}&​var={File.FullName}-{File.BuddyFiles}&​id=99

I'm wondering if the same information is exposed through the files endpoint? I'm already having to call that to get other data about the files, so if BuddyFiles are exposed I can save a server round-trip :)

Mario

Budy files may or may not be in the database. IMatch dynamically searches the file system whenever buddy files are required for processing.
This is a very expensive to calculate variable.

Have you considered using the /files/relations endpoint? It can deliver versions, buddies or both.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

rebus

Thanks Mario! I'd missed that endpoint when searching the docs  :-[