patch method

  1. @override
Future patch(
  1. ApiRequest request
)
override

Implementation

@override
Future patch(ApiRequest request) async {
  if (!allowPatch) {
    throw ApiRequestException.methodNotAllowed();
  }

  final json = await request.getJsonBody();
  final data = bean.toObject(json);
  final result = await patchElement(data);
  return {'result': result};
}