rsc_import

Import model for resources exported by m_rsc_export.

This model handles import-preview and import operations for external resource exports. It keeps import status metadata and supports fetching raw export payloads for authenticated users.

Imports emit #import_resource{} before creating resources or resolving remote references. Observers can handle or skip an import; successful imports retain normal import bookkeeping and emit #rsc_import_done{}. See zotonic_observer:observe_import_resource/2 for the contract. Include zotonic_core/include/zotonic.hrl to use the notification records.

Available Model API Paths

MethodPath patternDescription
get/fetch_rawFetch raw exported JSON from a remote URI provided in the payload, for authenticated users. No further lookups.

Edit on GitHub