Retrofit is not working in android
<p>Hi I am a beginner in android.</p>

<p>In my app, I am using Retrofit for integrating web services, but I am getting a 404 error from the server!</p>

<p>My code is below, please help me. </p>

<h2>MainActivity:-</h2>

<pre><code>  String url = "MY URL";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        //making object of RestAdapter
        RestAdapter adapter = new RestAdapter.Builder().setEndpoint(url).build();
        //Creating Rest Services
        RestInterface restInterface = adapter.create(RestInterface.class);

        restInterface.getWheatherReport(new Callback&lt;List&lt;Model&gt;&gt;() {
            @Override
            public void success(List&lt;Model&gt; models, Response response) {
                System.out.println("Response is====&gt;" + response.toString());
            }

            @Override
            public void failure(RetrofitError error) {
                System.out.println("failure is====&gt;" + error.toString());
            }
        });
    }
</code></pre>

<h2>Model:-</h2>

<pre><code>private int paymenttypeid;
    private String cardType;

    public int getPaymenttypeid() {
        return paymenttypeid;
    }

    public void setPaymenttypeid(int paymenttypeid) {
        this.paymenttypeid = paymenttypeid;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }
</code></pre>

<h2>RestInterface:-</h2>

<pre><code> @GET("/weather?q=London,uk")
    void getWheatherReport(Callback&lt;List&lt;Model&gt;&gt; cb);
</code></pre>

<h2>Server response:-</h2>

<pre><code>[
  {
    "paymenttypeid": 1,
    "cardType": "Master Card"
  },
  {
    "paymenttypeid": 2,
    "cardType": "VISA"
  }
]
</code></pre>