Skip to content

Commit

Permalink
Merge pull request square#508 from square/jw/converter-docs
Browse files Browse the repository at this point in the history
Add simple documentation to each converter.
  • Loading branch information
dnkoutso committed May 29, 2014
2 parents 43b7ea1 + c765636 commit aa8b0e4
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 1 deletion.
2 changes: 1 addition & 1 deletion retrofit-converters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ To use, supply an instance of your desired converter when building your `RestAda

```java
RestAdapter restAdapter = new RestAdapter.Builder()
.setEndpoint("https://api.fake.google.com")
.setEndpoint("https://api.example.com")
.setConverter(new ProtoConverter())
.build();
```
10 changes: 10 additions & 0 deletions retrofit-converters/jackson/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Jackson Converter
=================

A `Converter` which uses [Jackson][1] for serialization to and from JSON.

A default `ObjectMapper` instance will be created or one can be configured and passed to the
`JacksonConverter` construction to further control the serialization.


[1]: http://wiki.fasterxml.com/JacksonHome
7 changes: 7 additions & 0 deletions retrofit-converters/protobuf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Google Protocol Buffer Converter
================================

A `Converter` which uses [Protocol Buffer][1] binary serialization.


[1]: https://developers.google.com/protocol-buffers/
19 changes: 19 additions & 0 deletions retrofit-converters/simplexml/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Simple XML Converter
====================

A `Converter` which uses [Simple][1] for XML serialization.

A default `Serializer` instance will be created or one can be configured and passed to the
`SimpleXMLConverter` construction to further control the serialization.


Android
-------

Simple depends on artifacts which are already provided by the Android platform. When specifying as
a Maven or Gradle dependency, exclude the following transitive dependencies: `stax:stax-api`,
`stax:stax`, and `xpp3:xpp3`.



[1]: http://simple.sourceforge.net/
10 changes: 10 additions & 0 deletions retrofit-converters/wire/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Wire Converter
==============

A `Converter` which uses [Wire][1] for protocol buffer-compatible serialization.

A default `Wire` instance will be created or one can be configured and passed to the
`WireConverter` construction to further control the serialization.


[1]: https://github.com/square/wire

0 comments on commit aa8b0e4

Please sign in to comment.