Support Individual Metadata Editing for Multiple Books

This commit is contained in:
aditya.chandel
2025-06-18 22:26:12 -06:00
committed by Aditya Chandel
parent 82c843bbe5
commit 551234f02a
14 changed files with 274 additions and 21 deletions
@@ -176,6 +176,15 @@ export class BookService {
});
}
getBooksByIdsFromAPI(bookIds: number[], withDescription: boolean) {
return this.http.get<Book[]>(`${this.url}/batch`, {
params: {
ids: bookIds.map(id => id.toString()),
withDescription: withDescription.toString()
}
});
}
downloadFile(bookId: number): void {
const downloadUrl = `${this.url}/${bookId}/download`;
this.http.get(downloadUrl, {responseType: 'blob', observe: 'response'})