lnoueryo / webtech-bookstore

0 stars 0 forks source link

Design Book Search and Filtering Feature #58

Closed lnoueryo closed 11 months ago

lnoueryo commented 11 months ago

Details:

Conduct UI design, followed by adding the necessary models to an ER diagram. To retrieve book information, we may use an external API. Decide which API to use and research its implementation.

Acceptance Criteria:

Reference Materials

lnoueryo commented 11 months ago

Google's API provides the most information, but it lacks the 'price' key and sometimes omits certain details. Its stability is not guaranteed. OpenBD API only accepts ISBN queries, which is inconvenient, and it provides limited information. Rakuten is well-suited for this feature but requires some data to be supplemented by Google's API. Therefore, it has been decided to use both Rakuten API and Google API.Show each API's responses. Here is each API's response. const rakuten = { affiliateUrl: "", artistName: "", author: "仙塲 大也", availability: "1", booksGenreId: "001005017/001005005001", chirayomiUrl: "", discountPrice: 0, discountRate: 0, hardware: "", isbn: "9784297127831", itemCaption: "本書は、より成長させやすいコードの書き方と設計を学ぶ入門書です。システム開発では、ソフトウェアの変更が難しくなる事態が頻発します。コードの可読性が低く調査に時間がかかる、コードの影響範囲が不明で変更すると動かなくなる、新機能を追加したいがどこに実装すればいいかわからない…。変更しづらいコードは、成長できないコードです。ビジネスの進化への追随や、機能の改善が難しくなります。成長できないコードの問題を、設計で解決します。", itemPrice: 3278, itemUrl: "https://books.rakuten.co.jp/rb/17083126/", jan: "", label: "", largeImageUrl: "https://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7831/9784297127831_1_5.jpg?_ex=200x200", limitedFlag: 0, listPrice: 0, mediumImageUrl: "https://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7831/9784297127831_1_5.jpg?_ex=120x120", os: "", postageFlag: 2, publisherName: "技術評論社", reviewAverage: "4.26", reviewCount: 25, salesDate: "2022年04月30日頃", smallImageUrl: "https://thumbnail.image.rakuten.co.jp/@0_mall/book/cabinet/7831/9784297127831_1_5.jpg?_ex=64x64", title: "良いコード/悪いコードで学ぶ設計入門", };

const google = { kind: "books#volume", id: "6X33zgEACAAJ", etag: "Xp6EkmEoK/E", selfLink: "https://www.googleapis.com/books/v1/volumes/6X33zgEACAAJ", volumeInfo: { title: "良いコード/悪いコードで学ぶ設計入門―保守しやすい成長し続けるコードの書き方", authors: ["仙塲大也"], publishedDate: "2022-04", description: "本書は、より成長させやすいコードの書き方と設計を学ぶ入門書です。 システム開発では、ソフトウェアの変更が難しくなる事態が頻発します。 コードの可読性が低く調査に時間がかかる、 コードの影響範囲が不明で変更すると動かなくなる、 新機能を追加したいがどこに実装すればいいかわからない......。 変更しづらいコードは、成長できないコードです。 ビジネスの進化への追随や、機能の改善が難しくなります。 成長できないコードの問題を、設計で解決します。", industryIdentifiers: [ { type: "ISBN_10", identifier: "4297127830", }, { type: "ISBN_13", identifier: "9784297127831", }, ], readingModes: { text: false, image: false, }, pageCount: 400, printType: "BOOK", maturityRating: "NOT_MATURE", allowAnonLogging: false, contentVersion: "preview-1.0.0", panelizationSummary: { containsEpubBubbles: false, containsImageBubbles: false, }, imageLinks: { smallThumbnail: "http://books.google.com/books/content?id=6X33zgEACAAJ&printsec=frontcover&img=1&zoom=5&source=gbs_api", thumbnail: "http://books.google.com/books/content?id=6X33zgEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api", }, language: "ja", previewLink: "http://books.google.co.jp/books?id=6X33zgEACAAJ&dq=intitle:%E6%82%AA%E3%81%84%E3%82%B3%E3%83%BC%E3%83%89&hl=&cd=1&source=gbs_api", infoLink: "http://books.google.co.jp/books?id=6X33zgEACAAJ&dq=intitle:%E6%82%AA%E3%81%84%E3%82%B3%E3%83%BC%E3%83%89&hl=&source=gbs_api", canonicalVolumeLink: "https://books.google.com/books/about/%E8%89%AF%E3%81%84%E3%82%B3%E3%83%BC%E3%83%89_%E6%82%AA%E3%81%84%E3%82%B3%E3%83%BC%E3%83%89%E3%81%A7%E5%AD%A6%E3%81%B6.html?hl=&id=6X33zgEACAAJ", }, saleInfo: { country: "JP", saleability: "NOT_FOR_SALE", isEbook: false, }, accessInfo: { country: "JP", viewability: "NO_PAGES", embeddable: false, publicDomain: false, textToSpeechPermission: "ALLOWED", epub: { isAvailable: false, }, pdf: { isAvailable: false, }, webReaderLink: "http://play.google.com/books/reader?id=6X33zgEACAAJ&hl=&source=gbs_api", accessViewStatus: "NONE", quoteSharingAllowed: false, }, searchInfo: { textSnippet: "「ITエンジニア本大賞2023」技術書部門で大賞受賞! 本書は、より成長させやすいコードの書き方と設計を学ぶ入門書です。 ...", }, };

const openDB = { "onix": { "CollateralDetail": {}, "RecordReference": "9784297127831", "NotificationType": "03", "ProductIdentifier": { "ProductIDType": "15", "IDValue": "9784297127831" }, "DescriptiveDetail": { "TitleDetail": { "TitleType": "01", "TitleElement": { "TitleElementLevel": "01", "TitleText": { "collationkey": "イイ コード ワルイ コード デ マナブ セッケイ ニュウモン : ホシュ シヤスイ セイチョウ シツズケル コード ノ カキカタ", "content": "良いコード\/悪いコードで学ぶ設計入門 : 保守しやすい成長し続けるコードの書き方" } } }, "Contributor": [ { "SequenceNumber": "1", "ContributorRole": [], "PersonName": { "content": "仙塲, 大也", "collationkey": "センバ, ダイヤ" } } ] }, "PublishingDetail": { "Imprint": { "ImprintName": "技術評論社" }, "PublishingDate": [ { "PublishingDateRole": "11", "Date": "202205" } ] }, "ProductSupply": { "SupplyDetail": { "ProductAvailability": "99", "Price": [ { "PriceType": "01", "CurrencyCode": "JPY", "PriceAmount": "2980" } ] } } }, "hanmoto": { "datemodified": "2022-05-10 16:12:24", "datecreated": "2022-03-07 16:15:30", "datekoukai": "2022-03-07" }, "summary": { "isbn": "9784297127831", "title": "良いコード\/悪いコードで学ぶ設計入門 : 保守しやすい成長し続けるコードの書き方", "volume": "", "series": "", "publisher": "技術評論社", "pubdate": "202205", "cover": "", "author": "仙塲,大也" } }