title: Android Post Json Data to server using Retrofit 2
body: <p>Hello I have simple Json to post on server like below</p>
  
  <pre><code>{
      "Key":"KEY",
      "Token":"",
      "Data":
      {
           "Country": "India",
           "CountryCode":"IN",
           "MobileNumber":"+91111111111"
      }
  }
  </code></pre>
  
  <p>How can i post this data to server Please help me out 
  I have created Interface into this i have write</p>
  
  <pre><code> @POST("/user/register/")
  Call&lt;Login&gt; Registration(@Body Login login, Callback&lt;Login&gt; callBack);
  </code></pre>
  
  <p>is this ok? how i can call this?</p>
  
  <p>I have Used it like</p>
  
  <pre><code>Login login = new Login();
          com.j2ml.casualtrack.pojo_Request.Data data = new com.j2ml.casualtrack.pojo_Request.Data();
          data.setMobileNumber("+911234567890");
          data.setCountry("India");
          data.setCountryCode("IN");
          login.setData(data);
          login.setToken("MY TOKEN KEY");
          login.setKey("");
          final ProgressDialog loading = ProgressDialog.show(this, "Registration in progress..", "Please wait...", false, false);
          Retrofit retrofit = new Retrofit.Builder()
                  .baseUrl(Urls.URL)
                  .addConverterFactory(GsonConverterFactory.create())
                  .build();
          service = retrofit.create(RestAPI.class);
          service.Registration(login, new Callback&lt;Login&gt;() {
              @Override
              public void onResponse(Response&lt;Login&gt; response, Retrofit retrofit) {
                  System.out.println("Response: " + response.isSuccess());
                  loading.dismiss();
              }
  
              @Override
              public void onFailure(Throwable t) {
                  System.out.println("ERROR ..."+t.getMessage());
              }
          });
  </code></pre>
  
  <p>But,I am getting this error</p>
  
  <pre><code> java.lang.IllegalArgumentException: No Retrofit annotation found. (parameter #2)
  </code></pre>