mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-09-17 14:21:29 +00:00
Answers endpoint fix (#10176)
This commit is contained in:
committed by
Aleksander Sklorz
parent
a21dc4d6a0
commit
13fc92e62c
@@ -1,9 +1,9 @@
|
||||
# SearchAiApi
|
||||
|
||||
| Method | HTTP request | Description |
|
||||
|-------------------------|--------------------|-------------------------------------|
|
||||
| [ask](#ask) | **GET** /questions | Ask a question to the AI. |
|
||||
| [getAnswer](#getAnswer) | **GET** /answers | Get an answer to specific question. |
|
||||
| Method | HTTP request | Description |
|
||||
|-------------------------|----------------------------|-------------------------------------|
|
||||
| [ask](#ask) | **GET** /questions | Ask a question to the AI. |
|
||||
| [getAnswer](#getAnswer) | **GET** /answers/-default- | Get an answer to specific question. |
|
||||
|
||||
## ask
|
||||
|
||||
@@ -95,27 +95,10 @@ searchAiApi.getAnswer('some question id').then((answer) => {
|
||||
|----------------|--------|----------------------------------------------|
|
||||
| **questionId** | string | The ID of the question to get an answer for. |
|
||||
|
||||
**Return type**: [AiAnswerPaging](#AiAnswerPaging)
|
||||
**Return type**: [AiAnswerEntry](#AiAnswerEntry)
|
||||
|
||||
# Models
|
||||
|
||||
## AiAnswerPaging
|
||||
|
||||
**Properties**
|
||||
|
||||
| Name | Type |
|
||||
|------|-------------------------------------------|
|
||||
| list | [AiAnswerPagingList](#AiAnswerPagingList) |
|
||||
|
||||
## AiAnswerPagingList
|
||||
|
||||
**Properties**
|
||||
|
||||
| Name | Type |
|
||||
|----------------|-----------------------------------|
|
||||
| **pagination** | [Pagination](Pagination.md) |
|
||||
| **entries** | [AiAnswerEntry[]](#AiAnswerEntry) |
|
||||
|
||||
## AiAnswerEntry
|
||||
|
||||
**Properties**
|
||||
|
Reference in New Issue
Block a user