Skip to content
Snippets Groups Projects
Commit f1d5b31c authored by Antoine Lambert's avatar Antoine Lambert
Browse files

save_bulk: Add Web API endpoint to get feedback about a sent request

Add Web API endpoint /origin/save/bulk/request/(request_id)/ to get
feedback about a previously sent save bulk request.

The endpoint requires authentication and special permission to be
queried, also only the user that submitted the request or SWH staff
members can query it.

It returns for each submitted origin the following info:

- the origin URL
- the visit type
- the origin status regarding its processing by the bulk save lister,
  either pending, accepted or rejected
- the last scheduling date if any
- the last visit date if any
- the last visit status if any
- the last snapshot SWHID if any
- the rejection reason if the origin was rejected by the lister
- the browse URL if the origin was successfully visited

These info are returned in a paginated way as the number of submitted
origins can be large.

Related to #4802.
parent 59afec2a
No related branches found
No related tags found
1 merge request!1301save_bulk: Add Web API endpoint to get feedback about a sent request
Pipeline #10320 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment