dartrofit_converter_xml 1.0.0 copy "dartrofit_converter_xml: ^1.0.0" to clipboard
dartrofit_converter_xml: ^1.0.0 copied to clipboard

outdated

The Xml support for dartrofit.

Dartrofit_converter_xml for dartrofit #

The Xml support for dartrofit

First, depend on it

dependencies:
    dartrofit_converter_xml: latest version

Then, add it to Dartrofit configuration

final dartrofit = Dartrofit(Uri.parse('http://0.0.0.0:7777/'))
  ..converterFactories.add(XmlConverterFactory());

Usage #

import 'package:xml/xml.dart' as xml;

@WebApi()
abstract class Api {
  Api._();

  factory Api(Dartrofit dartrofit) = _$Api;

  @POST('books/v1/postBooks')
  Future<Optional<xml.Document>> postBooks(@Body() xml.XmlNode body);
}
0
likes
20
points
40
downloads

Publisher

verified publishernikeo.cn

Weekly Downloads

The Xml support for dartrofit.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

dartrofit, http_parser, xml

More

Packages that depend on dartrofit_converter_xml