recipesInCategory method

Future<DynamiteResponse<BuiltList<RecipeStub>, void>> recipesInCategory({
  1. required String category,
})

Get all recipes of a certain category.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • category The name of the category to be queried as urlencoded string.

Put the string _ to obtain all recipes with no category.

Status codes:

  • 200: The filtered recipes belonging to the category
  • 500: An exception was issued.

See:

Implementation

Future<_i1.DynamiteResponse<BuiltList<RecipeStub>, void>> recipesInCategory({required String category}) async {
  final _request = $recipesInCategory_Request(
    category: category,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $recipesInCategory_Serializer();
  return _i1.ResponseConverter<BuiltList<RecipeStub>, void>(_serializer).convert(_response);
}