private ServiceListResponse callGetServiceList(int start, int end, boolean rangeGiven)
    {
        WebTarget target = getTarget().path(SERVICE_GET_LIST_API_PATH);

        if (rangeGiven)
        {
            target = target.queryParam("start", start).queryParam("end", end);
        }

        return target
                .request(APPLICATION_JSON_TYPE)
                .header(AUTHORIZATION, mServiceOwnerAuth)
                .get(ServiceListResponse.class);
    }
private ServiceListResponse callGetServiceList(int start, int end, boolean rangeGiven)
    {
        WebTarget target = getTarget().path(SERVICE_GET_LIST_API_PATH);

        if (rangeGiven)
        {
            target = target.queryParam("start", start).queryParam("end", end);
        }

        return target
                .request(APPLICATION_JSON_TYPE)
                .header(AUTHORIZATION, mServiceOwnerAuth)
                .get(ServiceListResponse.class);
    }
private ServiceListResponse callGetServiceList ( int start , int end , boolean rangeGiven ) { WebTarget target = getTarget ( ) . path ( SERVICE_GET_LIST_API_PATH ) ; if ( rangeGiven ) { target = target . queryParam ( "start" , start ) . queryParam ( "end" , end ) ; } return target . request ( APPLICATION_JSON_TYPE ) . header ( AUTHORIZATION , mServiceOwnerAuth ) . get ( ServiceListResponse . class ) ; }
Call <code>/service/get/list</code>.
Call <code > / service / get / list< / code > .