SFULibrary / islandora_rest_ingester

Command-line tool for ingesting objects via the Islandora REST interface
The Unlicense
3 stars 0 forks source link

Abstract out classes into a standalone library #22

Open mjordan opened 6 years ago

mjordan commented 6 years ago

The client code is already fairly well abstracted, and other applications might find it useful. The Ingester abstract class for sure, but its children also. as long as they can be easily subclassed to allow implementers to have control over how each content model's input is structured.

mjordan commented 6 years ago

Looks like custom subclasses can be placed in a separate directory, and that directory registered in composer.json:

{
    "autoload": {
        "classmap": ["includes/", "myclasses/"]
    }
}
mjordan commented 6 years ago

Got https://packagist.org/packages/islandora-rest-client/islandora-rest-client working.

Work in issue-22 branch will migrate from using class files in includes directory to using the packagist version.

mjordan commented 6 years ago

Related issues: #25, #26 .

mjordan commented 6 years ago

https://github.com/mjordan/irc is coming along nicely. Work in the issue-22 branch has pivoted to using this library.

mjordan commented 6 years ago

irc component added to composer.json in 4a17520.

mjordan commented 6 years ago

Note that IRC requires that the base URI end in a slash, e.g., http://localhost/islandora/rest/v1/. Make sure the documentation reflects that and that the default value for the -e option does as well.