package net.ericschrag.ud_demo.data;

import net.ericschrag.ud_demo.data.model.GithubUser;

import java.util.List;

import retrofit.http.GET;

public interface GithubService {
    @GET("/users")
    public List<GithubUser> getUsers();
}

package net.ericschrag.ud_demo.data;

import net.ericschrag.ud_demo.data.model.GithubUser;

import java.util.List;

import retrofit.http.GET;
import retrofit.http.Headers;

public interface GithubService {
    @Headers("Accept: application/vnd.github.v3+json")
    @GET("/users")
    public List<GithubUser> getUsers();
}

Make sure to tell Github API what version we are expecting
Make sure to tell Github API what version we are expecting
