question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add example project for Retrofit usage

See original GitHub issue

During 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:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
kamikatcommented, Mar 29, 2017

Ah… I forget to place a default class for List. The exception is thrown by https://gist.github.com/kamikat/baa7d086f932b0dc4fc3f9f02e37a485/revisions#diff-6cc28be0a3606a8ff3ad7ce3e432507fR115

I’ve updated the gist to fix that… 😅

2reactions
p-fischercommented, Mar 20, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found