Skip to content

odalet/RefitRetrofitDemos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RefitRetrofitDemos

Example uses of both Refit (.NET) and Retrofit (Java).

You'll find the same 'Hello World' example implemented with both libraries. This sample invokes the GitHub Markdown API, passing-it a string and retrieves the translated HTML.

Note that, in this API, the request body is Json whereas the response is a raw string. In the Java case, there's a trick to apply to prevent Retrofit from trying to parse the response as Json: one must return a ResponseBody object instead of a String. Thanks @devnied for providing the solution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published