title: Set a list of strings in request payload
body: <p>I need to pass this request payload in REST API.. for below data list array, I need to set it to request even if I'm not getting from a client like a constant string-list.</p>
  
  <p>these are my java classes, can anyone help me where I need to set this</p>
  
  <pre><code>{
  "ph":"2019201234",
  "customerId":"3504241",
  "data":[
      "./ManagedObjects/Phone/Manufacturer",
      "./ManagedObjects/**something",
      "./ManagedObjects/**something",
  
      ]
  
  }
  </code></pre>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>@PostMapping(Constants.Endpoints.**)
  public ShowParametersResponse getParams(@RequestBody  ShowParametersRequest showParametersRequest) {
      log.info("Got request as : " + showParametersRequest);
      returnMapper.getParams(showParametersRequest);
  }
  </code></pre>
  
  <p><strong>Mapper class:</strong></p>
  
  <pre><code>public ShowParametersResponse getParams(ShowParametersRequest showParametersRequest) {
      log.info("Fetching data from wireless");
      ShowParametersResponse showParametersResponse  = Service.getParams(showParametersRequest);
      log.info("Fetched data/ mapping done.");
      return showParametersResponse;
  }
  </code></pre>
  
  <p><strong>Service class:</strong></p>
  
  <pre><code>public ShowParametersResponse  getParams(ShowParametersRequest showParametersRequest) {
  
      ResponseEntity&lt;ShowParametersResponse&gt; res = restTemplate.postForEntity(
              properties.getEndpoint() + Constants.Endpoints.***, showParametersRequest,
              ShowParametersResponse.class);
      log.info(res.getBody().toString());
      return res.getBody();
  }
  </code></pre>
  
  <p><strong>Request class:</strong></p>
  
  <pre><code>public class ShowParametersRequest {
      @JsonProperty("ph")
      private String ph;
      @JsonProperty("customerId")
      private String customerId;
      @JsonProperty("data")
      private List&lt;String&gt; data = null;
  
      @JsonProperty("ph")
      public String getPh() {
          return ph;
      }
  
      @JsonProperty("ph")
      public void setPh(String ph) {
          this.ph = ph;
      }
  
      @JsonProperty("customerId")
      public String getCustomerId() {
          return customerId;
      }
  
      @JsonProperty("customerId")
      public void setCustomerId(String customerId) {
          this.imei = customerId;
      }
  
      @JsonProperty("data")
      public List&lt;String&gt; getData() {
          return data;
      }
  
      @JsonProperty("data")
      public void setData(List&lt;String&gt; data) {
          this.data = data;
      }
  }
  </code></pre>