Backend developer gave me API description and that uses GET method and it is JSON format.
I never tried this way and as far as I know it's not possible that sending data in request body. with GET method in retrofit library.
He uses Django. And I tried with Query and Path... And nothing works... Even I tried with no annotation with the parameter.
{
    "data": "oicudsfqoerzxddadsdf"
}
1.
    @GET("find/data")
    fun findData(
        @Header("Authorization") sessionId: String,
        @Query("data") data: String
    ): Call<FinderResult>
2.
    @GET("find/data")
    fun findData(
        @Header("Authorization") sessionId: String,
        data: String
    ): Call<FinderResult>
3.
    @GET("find/data")
    fun findData(
        @Header("Authorization") sessionId: String,
        dataObj: DataObj
    ): Call<FinderResult>
@Keep
class DataObj(var data: String){
}
All didn't work. However, It worked on Postman using raw format(should select JSON). How can I use GET request with JSON? what's the problem?
 
    