Support Individual Metadata Editing for Multiple Books
This commit is contained in:
committed by
Aditya Chandel
parent
82c843bbe5
commit
551234f02a
@@ -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'})
|
||||
|
||||
Reference in New Issue
Block a user