src/main/java/edu/hawaii/its/api/service/HttpRequestServiceImpl.java
/*
     * Make an http request to the API with path variables.
     *
     * LGTM reporting a possible false positive: Groupings-1001
     */
Make an http request to the API with path variables.
LGTM reporting a possible false positive: Groupings-1001
Make an http request to the API with path variables . LGTM reporting a possible false positive : Groupings - 1001
@Override
    public ResponseEntity<String> makeApiRequest(String currentUser, String uri, HttpMethod method) {
        HttpHeaders httpHeaders = new HttpHeaders();
        httpHeaders.set(CURRENT_USER, currentUser);
        HttpEntity<String> httpEntity = new HttpEntity<>(httpHeaders);
        RestTemplate restTemplate =
                new RestTemplateBuilder().errorHandler(new RestTemplateResponseErrorHandler()).build();
        return restTemplate.exchange(uri, method, httpEntity, String.class);
    }
@ Override public ResponseEntity < String > makeApiRequest ( String currentUser , String uri , HttpMethod method ) { HttpHeaders httpHeaders = new HttpHeaders ( ) ; httpHeaders . set ( CURRENT_USER , currentUser ) ; HttpEntity < String > httpEntity = new HttpEntity < > ( httpHeaders ) ; RestTemplate restTemplate = new RestTemplateBuilder ( ) . errorHandler ( new RestTemplateResponseErrorHandler ( ) ) . build ( ) ; return restTemplate . exchange ( uri , method , httpEntity , String . class ) ; }
Make an http request to the API with path variables.
Make an http request to the API with path variables .