Catman...ingest(3pm)

✨ NAME ✨

Catmandu::FedoraCommons::Model::ingest β€” bestie, it's literally the Perl model for the Fedora ingest REST call 🫢


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, copy it exactly, no cap:

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'
}

like… you build a Catmandu::FedoraCommons pointing at your Fedora, you ingest a file with a pid and a format, you parse_content, and boom πŸ’₯ you get back a lil hash with the pid in it. That's it. That's the whole thing. Iconic behaviour fr fr ✨


πŸ‘‘ SEE ALSO πŸ‘‘

  • Catmandu::FedoraCommons β€” the parent, the main character, the one you actually want to go read next πŸ’…

and that's the page, bestie!! πŸŽ€ this was perl v5.36.0, dated 2023-02-05, and it's a User Contributed Perl Documentation joint β€” go forth and ingest responsibly, mwah πŸ’–πŸ¦‹

πŸ“¦ where this page comes from