apiDelete method

Future apiDelete(
  1. String url
)

////////////////////////////////////// Base API calls and methods ////////////////////////////////////////////////////

Implementation

Future<dynamic> apiDelete(String url) async {
  if (this.config != null && this.config.host != null) {
    var uri = Uri.parse(this.config.host + url);

    debug("apiDelete URL: ${uri.toString()}");

    return http.delete(uri, headers: getApiHeaders())
        .then( (res) => processResponse(res) );
  } else  {
    return Future.error(VasatError("No vasat configuration or host found", status: 8000));
  }

}