package com.anotherdev.stackapp.api.stackexchange;

import retrofit.http.GET;
import rx.Observable;

public interface StackOverflowApi {

    String BASE_URL = "https://api.stackexchange.com/2.2";


    @GET("/questions?order=desc&sort=activity&site=stackoverflow")
    Observable<Questions> questions();
}

package com.anotherdev.stackapp.api.stackexchange;

import retrofit.http.GET;
import retrofit.http.Query;
import rx.Observable;

public interface StackOverflowApi {

    String BASE_URL = "https://api.stackexchange.com/2.2";


    @GET("/questions?order=desc&sort=activity&site=stackoverflow")
    Observable<Questions> questions();

    @GET("/search?order=desc&sort=activity&site=stackoverflow")
    Observable<Questions> search(@Query("intitle") String text);
}

add search api