What is the proper/safe way to get/generate links for Salesforce objects retrieved through the REST API?
For instance, we have a tool living in another application that allows users to query for Salesforce content objects from the context of this other application and directly embed a link (just eases the process of linking to Salesforce content). At the moment, I am relying on the ID and the Salesforce URL (e.g., https://mysalesforceinstance.salesforce.com/|sobjectId|) as the URL that is embedded. Ideally, for content, we would link to the version page instead (e.g., https://mysalesforinstance.salesforce.com/sfc/#version/|sobjectID|). Is there a way to safely generate/retrieve this URL with the rest API? Or can I simply assume this URL will exist for all content objects?
I have seen in the past APIs that return a list of "resources" (e.g, URLs for all CRUD operations on the object) alongside an object, but I haven't seen anything like this in the documentation.