Skip to content

Expose Information on Embeddability in API #2931

@Bibo-Joshi

Description

@Bibo-Joshi

Nextcloud (please complete the following information):

  • Nextcloud-Version: 31.0.9
  • Forms-Version: 5.1.2

Is your feature request related to a problem? Please describe.
For [reasons] I'm rendering a list of forms available via public share on some external site. If the forms has an embeddable link, I'd like to directly embed it so that the users don't have to switch to NC.

Describe the solution you'd like
I'm already using the API_v3 to fetch the info about the forms. It would be nice if the data structures already include info on whether a link is embeddable or not.

Describe alternatives you've considered
Somehow detect with JS if the iframe was loaded and hide it if not. That's a rather dirty hack though IMHO 😅

Additional context
It actually already worked at some point. The code that I wrote ~1 year ago for the rendering of the external site thinks that there is a Permission "embed". I don't know where I got that info from back then, but I do reckall that it worked form one form while I was testing it. So either it was just not documented, or it was removed later. Though it would make more sense to provide that info as part of the Share object … BTW I really enjoy that there is a well-documented API, shout out for that!

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.enhancementNew feature or request
    No fields configured for Enhancement.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions