src/main/java/org/folio/rest/utility/MappingUtility.java
private static HttpHeaders headers(String tenant) {
    HttpHeaders headers = new HttpHeaders();
    headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN));
    headers.setContentType(MediaType.APPLICATION_JSON);
    headers.set("X-Okapi-Tenant", tenant);
    return headers;
  }
// NOTE: assuming all accept and content type will be application/json
assuming all accept and content type will be application/json
assuming all accept and content type will be application / json
private static HttpHeaders headers(String tenant) {
    HttpHeaders headers = new HttpHeaders();
    headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON, MediaType.TEXT_PLAIN));
    headers.setContentType(MediaType.APPLICATION_JSON);
    headers.set("X-Okapi-Tenant", tenant);
    return headers;
  }
private static HttpHeaders headers ( String tenant ) { HttpHeaders headers = new HttpHeaders ( ) ; headers . setAccept ( Arrays . asList ( MediaType . APPLICATION_JSON , MediaType . TEXT_PLAIN ) ) ; headers . setContentType ( MediaType . APPLICATION_JSON ) ; headers . set ( "X-Okapi-Tenant" , tenant ) ; return headers ; }
NOTE: assuming all accept and content type will be application/json
NOTE : assuming all accept and content type will be application / json