简体   繁体   中英

Why the Delivery Preview API shows also publish content?

As the title says why the delivery API shows also published content and not just unpublished content items. Here is how I initialize a delivery client for previewing content in ASP.net

public static readonly IDeliveryClient _client = 
        DeliveryClientBuilder
            .WithOptions(builder => builder
                .WithProjectId("ID-PROJECT")
                .UsePreviewApi("API-PREVIEW")    
                .Build())
            .Build();

Yes, this is expected behavior. As per docs :

The Delivery Preview API returns the latest versions of content items allowing your content producers to view content items before they publish them or preview changes made to already published content items.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM