getAuthors method
Search authors in the ISBNdb.
ISBNdb rejects pageSize values greater than 100 with HTTP 400.
Implementation
Future<AuthorQueryResult> getAuthors(
String query, {
int page = 1,
int pageSize = 20,
}) async {
final path = "authors/$query";
final response = await _get(
path,
queryParameters: <String, Object?>{"page": page, "pageSize": pageSize},
);
return _parseModel(
method: "GET",
path: path,
parser: () => AuthorQueryResult.fromJson(response),
);
}