Add example project for Retrofit usage
See original GitHub issueDuring the development of PR https://github.com/kamikat/moshi-jsonapi/pull/16 I found it incredibly helpful to test the integration of moshi-jsonapi and Retrofit. Because this is quite a common use-case and involves some additional code that currently has no documentation, I would like to add a retrofit-example
Java module that shows how to use moshi-jsonapi with Retrofit.
Bonus: we can add nice integration tests with MockWebServer!
@kamikat please tell me if you would like to have this. If you do I’ll start working on it! 😃 🎉
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Retrofit Android Example Tutorial - DigitalOcean
Welcome to Retrofit Android Example Tutorial. Today we'll use the Retrofit library developed by Square to handle REST API calls in our ...
Read more >Using Retrofit 2.x as REST client - Tutorial - Vogella.com
This tutorial explains the usage of the Retrofit library as REST client. ... Create a new Gradle project called com.vogella.retrofitgerrit . Add a...
Read more >Retrofit— A simple Android tutorial | by Prakash Pun | Medium
Open build.gradle in (Module:app) and add Retrofit, Picasso, RecyclerView, Gson dependencies like this. 3.
Read more >Retrofit Tutorial With Example In Android Studio [Step by Step]
Here are the main steps to integrate Retrofit in our project. 1.Add dependency file in gradle: Firsly add this library in your build.gradle...
Read more >Consuming APIs with Retrofit | CodePath Android Cliffnotes
See this guide about leveraging the Gson library for more information about how to create your own Java classes for use with Retrofit....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ah… I forget to place a default class for
List
. The exception is thrown by https://gist.github.com/kamikat/baa7d086f932b0dc4fc3f9f02e37a485/revisions#diff-6cc28be0a3606a8ff3ad7ce3e432507fR115I’ve updated the gist to fix that… 😅
Even with the documentation about interface declaration, I’m still having trouble to define the RequestBody and ResponseBody classes properly. @kamikat A sample project using moshi-json API in combination with Retrofit would still be very helpful.