DOKK / manpages / debian 12 / libcatmandu-fedoracommons-perl / Catmandu::FedoraCommons::Model::ingest.3pm.en
Catmandu::FedoraCommons::Model::ingest(3pm) User Contributed Perl Documentation Catmandu::FedoraCommons::Model::ingest(3pm)

Catmandu::FedoraCommons::Model::ingest - Perl model for the Fedora 'ingest' REST call

  use Catmandu::FedoraCommons;
  
  my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
  
  my $obj = $fedora->ingest(pid => 'demo:40', file => 't/obj_demo_40.zip', format => 'info:fedora/fedora-system:ATOMZip-1.1')->parse_content;
  
  {
    'pid' => 'demo:40'
  }

Catmandu::FedoraCommons

2023-02-05 perl v5.36.0