Preparing search index...

    Represents a resource linked to the API response.

        // RemoteApiResponse.LinkedResource represents a linked resource returned
    // alongside a RemoteApiResponse. It has a protected constructor — instances
    // are created by the system and accessed via response.linkedResources.
    //
    // Properties (readonly):
    // url: string — the URL of the linked resource

    const { RemoteApiRequest, performApiRequest } = await import('LensStudio:RemoteServiceModule');

    const request = RemoteApiRequest.create();
    request.endpoint = '/v1/resources';
    request.specId = 'resource-spec';
    request.parameters = {};

    performApiRequest(request, (response) => {
    console.log('Number of linked resources:', response.linkedResources.length);

    // Each LinkedResource has a single readonly property: url (string)
    for (const linked of response.linkedResources) {
    console.log('LinkedResource url:', linked.url);
    }
    });

    console.log('LinkedResource is accessed via RemoteApiResponse.linkedResources[].');
    console.log('Each LinkedResource has a readonly url (string) property.');
    Index

    Constructors

    Properties

    Constructors

    Properties

    url: string

    The URL of the linked resource.