Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a REST interface #12

Closed
mjordan opened this issue Apr 29, 2019 · 4 comments
Closed

Add a REST interface #12

mjordan opened this issue Apr 29, 2019 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@mjordan
Copy link
Owner

mjordan commented Apr 29, 2019

As discussed in Islandora/documentation#1096.

@mjordan mjordan added the enhancement New feature or request label Apr 29, 2019
@mjordan mjordan self-assigned this Apr 29, 2019
mjordan added a commit that referenced this issue Apr 29, 2019
@mjordan
Copy link
Owner Author

mjordan commented Apr 29, 2019

Basic REST interface is now included. See README.md for more info. I will continue to work on this feature under this issue.

@mjordan
Copy link
Owner Author

mjordan commented Apr 30, 2019

Note that currently, the creation of Bags using the REST interface is not truly asynchronous since the Bags are created during the HTTP response. To completely decouple the creation of the bags from the HTTP request, we probably need to accumulate node IDs in a queue and then run Islandora Bagger as a CLI in a cron job.

@mjordan
Copy link
Owner Author

mjordan commented May 5, 2019

5d010ee adds writing a queue file to the application's var directory that writes tab-delimited entries like this:

4       /home/mark/Documents/hacking/islandora_bagger/var/islandora_bagger.4.yaml

The first field is the node ID, and the second is the path to the YAML configuration file POSTed in the request.

@mjordan
Copy link
Owner Author

mjordan commented May 5, 2019

Closing since the basic REST interface for populating the queue works. Further additions to the REST interface should get their own tickets.

@mjordan mjordan closed this as completed May 5, 2019
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
mjordan added a commit that referenced this issue Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant