Using of /OCP/Share possible for non file shares?


I am developing a small app where I want to give the users the ability to gain access to the app by creating a link like the files share link. Is it possible to create shares by using the OC API to create the share link and routing the visitors with this link to the public page of the app?

Thx for hints!