moshi-jsonapi
moshi-jsonapi copied to clipboard
JSON API v1.0 Specification in Moshi.
Is there any sample illustrating the use of Parcelable for bundle parameter transfer? thanks
I'm trying to generate JsonApi for an application in Kotlin and have the following adapters: val jsonApiAdapterFactory: JsonAdapter.Factory = ResourceAdapterFactory.builder() .add(MessageModel::class.java) .add(MultipartModel::class.java) .add(BodypartModel::class.java) .add(SingleBodyModel::class.java) .build() val moshi = Moshi.Builder() .add(jsonApiAdapterFactory)...
Hi, I'm trying to integrate your moshi-jsonapi in my Android Kotlin project, but I'm having an issue with the compatibility with the moshi-kotlin library (working with Retrofit). Basically, I'm extending...
I added moshi-jsonapi to my Android project as follows in the build.gradle: ``` implementation 'moe.banana:moshi-jsonapi:3.5.0' implementation 'moe.banana:moshi-jsonapi-retrofit-converter:3.5.0' ``` As I'm using Retrofit in my project, I also added the converter....
When creating a `Resource` model class with Kotlin some features are not supported, like custom-named fields with `@Json` (see https://github.com/square/moshi/issues/315). However, moshi introduced [moshi-kotlin](https://github.com/square/moshi#reflection) and [moshi-kotlin-codegen](moshi-kotlin-codegen) to fix that. A...
Would be nice to add to all methods that may return `null` `@Nullable` annotation, so it enables better interop with Kotlin code.
If I get an updated JSON-API string back from the server is there a way to use it to update an existing Resource instance rather than creating a new one?...
"ObjectDocument document = new ObjectDocument(); document.set(article); document.include(author); System.out.println(moshi.adapter(Document.class).toJson(document)); " The json does not have a relationships field
http://jsonapi.org/format/#fetching-pagination Is there a way to retrieve the `next` and `prev` in `link` field.
Version 3 of the library looks great, it would be very helpful if you could maintain a changelog like square libraries usually do. For example: https://github.com/square/okhttp/blob/master/CHANGELOG.md