title: Retrofit 2.0 POST method with body is String
body: <p>This question may have been asked before but with new version 2.0 I did not find any correct answer yet.</p>
  
  <p>My problem as below:</p>
  
  <pre><code>public interface  AuthenticationAPI {
  
      @POST("token")
      Call&lt;String&gt; authenticate(@Body String  body);
  
  }
  </code></pre>
  
  <p>Then I call:</p>
  
  <pre><code>Retrofit retrofit = new Retrofit.Builder().baseUrl(authenUrl)
                  .addConverterFactory(GsonConverterFactory.create())
                  .build();
          AuthenticationAPI authen = retrofit.create(AuthenticationAPI.class);
  
  
          try {
              Call&lt;String&gt; call1 = authen.authenticate(authenBody);
              call1.enqueue(new Callback&lt;String&gt;() {
                  @Override
                  public void onResponse(Response&lt;String&gt; response, Retrofit retrofit) {
                      Log.d("THAIPD", "Success " + response.raw().message());
                  }
  
                  @Override
                  public void onFailure(Throwable t) {
                      Log.e("THAIPD", " FAIL " + t.getMessage());
                  }
              });
          } catch (Exception e) {
              Log.e("THAIPD", e.getMessage());
              e.printStackTrace();
          }
  </code></pre>
  
  <p>Then I receive the response as <code>protocol=http/1.1, code=400, message=Bad Request</code>, That means my body parameter was not correct.</p>
  
  <p>When I try to make a request by other tool as Postman I get the correct result with code is 200.</p>
  
  <p>I found <a href="https://stackoverflow.com/questions/21398598/how-to-post-raw-whole-json-in-the-body-of-a-retrofit-request">this answer</a> but with <code>Retrofit 2.0</code> I can not find TypedString class.</p>
  
  <p>Here is the result when I try by another tool (DHC)
  <a href="https://i.stack.imgur.com/FpNkP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FpNkP.png" alt="enter image description here"></a></p>