All Projects → Ramkishorevit → Graphql Retrofit Converter

Ramkishorevit / Graphql Retrofit Converter

A Retrofit 2 Converter.Factory for GraphQL.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Graphql Retrofit Converter

Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (+215.22%)
Mutual labels:  rxjava, rxjava2, retrofit2
iMoney
iMoney 金融项目
Stars: ✭ 55 (+19.57%)
Mutual labels:  rxjava, rxjava2, retrofit2
Android Developer Roadmap
Android Developer Roadmap - A complete roadmap to learn Android App Development
Stars: ✭ 2,170 (+4617.39%)
Mutual labels:  rxjava, rxjava2, android-studio
Bigbang
Android base project used by Xmartlabs team
Stars: ✭ 47 (+2.17%)
Mutual labels:  rxjava, rxjava2, retrofit2
Kotlinmvp
🔥 基于Kotlin+MVP+Retrofit+RxJava+Glide 等架构实现短视频类小项目,简约风格及详细注释,欢迎 star or fork!
Stars: ✭ 3,488 (+7482.61%)
Mutual labels:  rxjava, rxjava2, retrofit2
Aiyagirl
🔥 爱吖妹纸(含 Kotlin 分支版本)——Retrofit + RxJava + MVP 架构 APP 体验代码家的干货集中营 Gank.io,福利多多,不容错过
Stars: ✭ 1,109 (+2310.87%)
Mutual labels:  rxjava, rxjava2, retrofit2
Httprequest
基于Retrofit2+RxJava2+OkHttp3的网络请求框架,可以完美的应用到组件化、MVP模式等项目中
Stars: ✭ 181 (+293.48%)
Mutual labels:  rxjava, rxjava2, retrofit2
Fountain
Android Kotlin paged endpoints made easy
Stars: ✭ 175 (+280.43%)
Mutual labels:  rxjava, rxjava2, retrofit2
Protein
💊 Protein is an IntelliJ Plugin to generate Kotlin code for Retrofit 2 and RxJava 2 based on a Swagger definition
Stars: ✭ 273 (+493.48%)
Mutual labels:  rxjava2, android-studio, retrofit2
RxRetroAPICall
API call example using Retrofit and RxJava2
Stars: ✭ 16 (-65.22%)
Mutual labels:  rxjava, rxjava2, retrofit2
Phoenix For Vk
Yet another VK client for Android
Stars: ✭ 131 (+184.78%)
Mutual labels:  rxjava2, android-studio, retrofit2
Ganhuoio
基于Gank.IO提供的API的第三方客户端(RxJava+Retrofit)
Stars: ✭ 727 (+1480.43%)
Mutual labels:  rxjava, rxjava2, retrofit2
Kotlin Android Scaffolding
An android project structure using kotlin and most common libraries.
Stars: ✭ 53 (+15.22%)
Mutual labels:  rxjava2, android-studio, retrofit2
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (+117.39%)
Mutual labels:  rxjava, rxjava2, retrofit2
RxHttp
基于RxJava2+Retrofit+OkHttp4.x封装的网络请求类库,亮点多多,完美兼容MVVM(ViewModel,LiveData),天生支持网络请求和生命周期绑定,天生支持多BaseUrl,支持文件上传下载进度监听,支持断点下载,支持Glide和网络请求公用一个OkHttpClient⭐⭐⭐
Stars: ✭ 25 (-45.65%)
Mutual labels:  rxjava, rxjava2, retrofit2
Androidproject
Android 技术中台,但愿人长久,搬砖不再有
Stars: ✭ 4,398 (+9460.87%)
Mutual labels:  rxjava, rxjava2, retrofit2
Mvvmhabit
goldze: 本人喜欢尝试新的技术,以后发现有好用的东西,我将会在企业项目中实战,没有问题了就会把它引入到MVVMHabit中,一直维护着这套框架,谢谢各位朋友的支持。如果觉得这套框架不错的话,麻烦点个 star,你的支持则是我前进的动力!
Stars: ✭ 6,789 (+14658.7%)
Mutual labels:  rxjava, rxjava2, retrofit2
Avenuenet
AvenueNet 是一个基于 Retrofit 二次封装的网络请求库,使用 Rxjava 的链式调用方式,二次封装的目的是为了对请求数据的正确性以及错误状态做统一的处理,对 Retrofit 对象做管理,有点为业务而生的味道,并非纯正的网络请求库
Stars: ✭ 10 (-78.26%)
Mutual labels:  rxjava2, retrofit2
Habitica Android
Native Android app for Habitica
Stars: ✭ 847 (+1741.3%)
Mutual labels:  rxjava, android-studio
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (+1778.26%)
Mutual labels:  rxjava, retrofit2

GraphQL-Retrofit-Converter

==============================

A Retrofit 2 Converter.Factory for GraphQL.

Usage

Add a converter factory when building your Retrofit instance using either the stringBased or bytesBased factory methods:

val retrofit = Retrofit.Builder()
    .baseUrl("https://example.com/")
    .addConverterFactory(GraphQLConverter.create(this))
    .build()

Now when you build your API interface use it like this,

@POST("/")
@GraphQuery("filename")
fun getResponse(@Body query: QueryContainerBuilder): Call<T> 

Note filename here refers to filename.graphql file which contains the actual GraphQL query that should be placed in assets->graphql-> <<filename.graphql>>.

QueryContainerBuilder is an in-built model class that allows to set variables (if any) in the graphql query.Hence it might also be null

The variables in the query can be set like this,

val queryContainer = QueryContainerBuilder()
queryContainer.putVariable("id",1)

Download

Grab via Maven:

<dependency>
  <groupId>com.ramkishorevs.graphqlretrofitconverter</groupId>
  <artifactId>graphqlconverter</artifactId>
  <version>1.0.0</version>
  <type>pom</type>
</dependency>

or via Gradle

compile 'com.ramkishorevs.graphqlretrofitconverter:graphqlconverter:1.0.0'

License

Copyright 2018 Ramkishore V S

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].