Catman...upload(3pm)
π NAME π
Catmandu::FedoraCommons::Model::upload β okay so bestie, this is the Perl model for the Fedora 'upload' REST call β¨ (also living under the manual name Catman...upload(3pm), iykyk π«Ά)
πΈ SYNOPSIS πΈ
Here's the vibe, fr fr β copy it exactly, don't freestyle on the code π
use Catmandu::FedoraCommons;
my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
my $obj = $fedora->upload(file => 't/marc.xml')->parse_content;
{
'id' => 'upload://11'
}
So like, you spin up a Catmandu::FedoraCommons object pointing at 'http://localhost:8080/fedora' with 'fedoraAdmin' and 'fedoraAdmin' as the credentials, then you hit upload with file => 't/marc.xml' and call parse_content on the result. What comes back? Literally this, and it's iconic:
{
'id' => 'upload://11'
}
no cap, that's the whole glow-up π
π¦ SEE ALSO π¦
- Catmandu::FedoraCommons β go read that one too, bestie, it's the main character of this whole situation π
mwah π this page is served up by perl v5.36.0, dated 2023-02-05, and it's giving Catman...upload(3pm) energy. periodt. πβπ
π¦ where this page comes from
- debian bookworm: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms