package com.blstream.studybox.api;

import retrofit.RequestInterceptor;
import retrofit.RestAdapter;

public class RestClient {

    private static final String URL = "http://78.133.154.70:2000/";
    private RestInterface restInterface;

    public RestClient(){
        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint(URL)
                .build();

        restInterface = restAdapter.create(RestInterface.class);
    }

    public RestClient(RequestInterceptor interceptor){
        RestAdapter restAdapter = new RestAdapter.Builder()
                .setEndpoint(URL)
                .setRequestInterceptor(interceptor)
                .build();

        restInterface = restAdapter.create(RestInterface.class);
    }

    public RestInterface getService(){
        return restInterface;
    }
}

@@ -190,16 +190,111 @@
 2000/%22;%0A
+    private static final String BASE_URL = %22http://private-5f2e4b-studybox2.apiary-mock.com/%22;%0A
     priv
@@ -433,32 +433,37 @@
    .setEndpoint(
+BASE_
 URL)%0A           

undo removal of BASE_URL