odatasitefinitysitefinity-10

Default REST API returns deleted items


Our team is leveraging the Sitefinity default REST API (i.e. /api/default/products) in order to perform data operations on an external job. We are able to distinguish products by site/provider and culture without issue. This is currently working for the most part but with a frustrating potential bug.

It seems that the API returns the Live version of the content as expected, but it also returns content of that type that has been Deleted and is sitting in the Recycle Bin. Documentation on this has been scarce and I have not seen it mentioned in other posts. I am looking for a parameter or filter that will remove Deleted/Recycle Bin items from the response in the Sitefinity default REST API?


Solution

  • I opened a support ticket with Telerik/Progress and they confirmed this is a bug. The rep stated that it will be resolved in Sitefinity 11. For now the only workarounds are to make sure items are unpublished before deleted or removed from the recycle bin. Alternatively, one could create their own endpoints that use the ModuleManagers that provide access to the lifecycle of content.