-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.3
-
Component/s: Bulk, Query & PageProvider
-
Epic Link:
-
Sprint:nxcore 10.3.4, nxcore 10.3.5
-
Story Points:3
We want to be able to run a BulkCommand on a page provider from REST.
Endpoint could be:
- POST /api/v1/search/pp/
{providerName}/bulk
{ "action":"...", "parameters":"..." }
* POST /api/v1/search/pp/{providerName}/bulk/
{action}{ "action":"...", "parameters":"..." }
Technical Specifications
Bulk action parameters JSON format
Parameters can be added as an input to a bulk action.
Here is an example of bulk action parameters format used to execute the SetProperties action in Nuxeo REST API :
{ "dc:title": "new title", "dc:description":"new description" }
REST Endpoints
Several endpoints are added, here the exhaustive list:
HTTP Method | Path | Request Body | Response |
---|---|---|---|
POST | /nuxeo/api/v1/search/bulk/{actionId} |
Bulk action parameters | Bulk action status |
POST | /nuxeo/api/v1/search/pp/{pageProviderName}/bulk/{actionId} |
Bulk action parameters | Bulk action status |
POST | /nuxeo/api/v1/search/saved/{savedSearchId}/bulk/{actionId} |
Bulk action parameters | Bulk action status |
- is related to
-
NXP-25713 Deprecate search by lang REST endpoint
- Resolved
-
NXP-25866 Fix NPE when using BAF Rest endpoint with no parameters
- Resolved
- is required by
-
ELEMENTS-777 BAF: Add/Evolve core elements to leverage Bulk Action Framework
- Resolved