post method

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

Implementation

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

  final json = await request.getJsonBody();
  final data = bean.toObject(json);
  final result = await postElement(request, data);
  return result.b;
}