getAuthorByIdResponse method

Future<Response> getAuthorByIdResponse(
  1. String authorId
)
inherited

Get details of an author identified by the author's authorId or UUID nad return the data as an http response.

Implementation

Future<http.Response> getAuthorByIdResponse(String authorId) async {
  final unencodedPath = '/author/$authorId';
  final uri = 'https://$AUTHORITY$unencodedPath';
  var response = http.get(Uri.parse(uri), headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
  });
  return response;
}