HAPI Books

フリーミアム
よって ROFT | 更新済み hace un mes | Entertainment
人気

0.4 / 10

レイテンシー

619ms

サービスレベル

9%

Health Check

N/A

すべてのディスカッションに戻る

Limiting number of books in response

Rapid account: Spencerhaka
spencerhaka
hace un año

Hi, the response from the endpoint “Get Weekly Popular Books by Genre” is an object with 100 books. That’s a lot of data. Is there a way to query for less books? For example, I would only like the top 10 books back. Thanks

Rapid account: Spencerhaka
spencerhaka Commented hace un año

Incredible! Thank you for implementing this. Yes, I see that “number_results” is required, but that’s ok. This is a big improvement and much appreciated.

Rapid account: Roftcomp La Gm Bwl W Lm
roftcomp-laGmBwlWLm Commented hace un año

Hello again spencerhaka.

After your question, the feature you mentioned has been implemented. Now, in the endpoint “Get Weekly Popular Books by Genre”, you can add an extra parameter regarding the exact number of results you wish to receive (to a maximum value of 100).

You can still use this endpoint without this parameter. In this case, the API will return all the books, which is 100.

Happy coding 😃

Rapid account: Roftcomp La Gm Bwl W Lm
roftcomp-laGmBwlWLm Commented hace un año

Hello spencerhaka. We appreciate you using our API and your comment.

At the moment, for the mentioned current endpoint, it is only possible to retrieve that number of books.
However, the idea you mentioned can be studied for a future implementation.

We hope this was helpful.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿