mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ACS-8037] Add new endpoint to confirm/reject prediction (#9746)
* [ACS-8037] Add new endpoint to confirm/reject prediction * [ACS-8037] Fix prediction api docs
This commit is contained in:
@@ -5,6 +5,7 @@ All URIs are relative to *https://localhost/alfresco/api/-default-/private/hxi/v
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**getPredictions**](PredictionsApi.md#getPredictions) | **GET** /nodes/{nodeId}/predictions | Get predictions for node.
|
||||
[**reviewPrediction**](PredictionsApi.md#reviewPrediction) | **POST** /predictions/{predictionId}/review | Reject or confirm prediction.
|
||||
|
||||
<a name="getPredictions"></a>
|
||||
# **getPredictions**
|
||||
@@ -16,8 +17,26 @@ Get predictions for a node.
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**nodeId** | **string**| The identifier of a node. |
|
||||
**nodeId** | **string** | The identifier of a node. |
|
||||
|
||||
### Return type
|
||||
|
||||
[**PredictionPaging**](PredictionPaging.md)
|
||||
|
||||
|
||||
<a name="reviewPrediction"></a>
|
||||
# **reviewPrediction**
|
||||
> Promise\<void\> reviewPrediction(predictionId, reviewStatus)
|
||||
|
||||
Confirm or reject a prediction.
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**predictionId** | **string** | The identifier of a prediction. |
|
||||
**reviewStatus** | **ReviewStatus** | Review status for prediction. Can be confirmed or rejected. |
|
||||
|
||||
### Return type
|
||||
|
||||
**Promise\<void\>**
|
||||
|
Reference in New Issue
Block a user