How to post JSON using Retrofit 2 in android?
问题 I am new to android and I dont know how to POST using retrofit I have my own server which returns me data, I need to fetch that one This is how URL body looks like I have to send "city name" taken by edittext and pass it inside "ms_data's" keyword, i.e keyword="India" This is what I have tried so far... Retrofit Builder class public class RetrofitBuilder { public static Retrofit retrofit; public static final String BASE_URL = "my url"; public static Retrofit getApiData() { if(retrofit==null)