TESSA Web API
    Preparing search index...

    Interface IContentService

    Service for content managing.

    interface IContentService {
        getContent(
            type: string,
            contentId: string,
            token: string,
        ): Promise<IContentResult>;
        getToken(request: ContentTokenRequest): Promise<ContentTokenResponse>;
    }

    Implemented by

    Index

    Methods

    • Retrieves content based on the provided type, content identifier and access token.

      Parameters

      • type: string

        Type of requested content.

      • contentId: string

        Identifier of requested content.

      • token: string

        Token for accessing content.

      Returns Promise<IContentResult>

      An IContentResult object, containing the content data and validation result.