Package net.ygbstudio.jbrave.api.response
package net.ygbstudio.jbrave.api.response
Sealed response model returned by the Brave Search API.
The root ApiResponse interface permits exactly one
implementation per search vertical (web, image, news, video, suggest, spellcheck) plus an ErrorResponse for API errors. Implementations provide JSON
(de)serialization helpers so responses can be read from, and written to, strings, files, readers,
and HTTP response bodies.
- Author:
- Yoham Gabriel Barboza B. (YGBStudio)
-
ClassDescriptionRepresents a response from the Brave Search API.Error response object that the Brave Search API sends in case the client's request results in either 404, 422, or 429 http status codes.Represents the response from the Brave Search API for image searches.Represents the response from the Brave Search API for news searches.Constructs a
RateLimitResponsewith the given rate limit information.Represents the response from the Brave Search API for spell check.Represents the response from the Brave Search API for suggestions.Represents the response from the Brave Search API for video searches.Represents the top-level response from the Brave Search API.