Share API for other data than folders and files

Hi,

I like to share data within my app (health) that are not based on files.
Is there a common way with documentation to do so like for files?
Or is the best way to do it on my own with “own logic”?

This question relates to Using Share API for non file shares possible? with no answer on it.

Cheers