Project

General

Profile

Task #3119

Feature #3116: Couple of changes to ChatGPT answer page on the site

BE: Create a new api for fetching the source-url based on books.

Added by Ayush Khandelwal over 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
07/10/2023
Due date:
% Done:

100%

Estimated time:
2.00 h (Total: 3.50 h)
Spent time:
(Total: 2.00 h)

Description

API name: content/api/v1/bookSource
Method: POST
Request Body: {
"bookIds": [<array of bookId/documentProcessingId>]
}
Here, bookId means documentProcessingId

Get the o-url from document_1 of each documentProcessingIds(i.e Get the Ourl based on the documentId - "<documentProcessingId>-1" )
The response should be of the below format.

Response:
It should contain key value pairs of documentProcessingId & book's first document o-url i.e. source-url
ex: {
"fde65e15-ecb4-4bd8-a307-1f4c937d288f" : {"sourceUrl": "<o-url from document 1>"}
"afqwx-ecb4-4bd8-a307-45gdl6efe" : {"sourceUrl": "<o-url from document 1>"}
}


Subtasks

Task #3122: Allow caching for /bookSource API Closed07/10/2023Ayush Khandelwal

Actions

Also available in: Atom PDF