TestPutInputModelExpander

Expands:


    $applicationRoot.directory$/integration/$application.shortName$-tests-$apiName$/gen/main/java/$dataElement.packageName;format="toPath"$/model/$dataElement.name;format="firstToLower"$
  /$dataElement.name$PutInputModel.java

if:

dataElement.component.getOption("enableJaxrs").defined and
    dataElement.getOption('includeJaxrsConnector').defined and
    dataElement.getOption('exposePutEndpoint').defined
property value
element type DataElement
qualified name net.democritus.expander.integration.api.model.TestPutInputModelExpander
layer CONTROL_LAYER
technology COMMON
sourceType JAVA
phase expansion
features  

Example

Some example of the content generated by the expander:

// expanded with nsx-expanders:4.16.3, expansionResource net.democritus:rest-expanders:2.4.2
package net.animals.model.catBreed;

import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

// @anchor:imports:start
// @anchor:imports:end
// anchor:custom-imports:start
// anchor:custom-imports:end

// @anchor:annotations:start
// @anchor:annotations:end
// anchor:custom-annotations:start
// anchor:custom-annotations:end
public class CatBreedPutInputModel implements Serializable {

  // @anchor:country-annotations:start
  // @anchor:country-annotations:end
  // anchor:custom-country-annotations:start
  // anchor:custom-country-annotations:end
  private String country;

  // @anchor:origin-annotations:start
  // @anchor:origin-annotations:end
  // anchor:custom-origin-annotations:start
  // anchor:custom-origin-annotations:end
  private String origin;

  // @anchor:coatLength-annotations:start
  // @anchor:coatLength-annotations:end
  // anchor:custom-coatLength-annotations:start
  // anchor:custom-coatLength-annotations:end
  private String coatLength;

  // @anchor:fields:start
  // @anchor:fields:end
  // anchor:custom-fields:start
  // anchor:custom-fields:end

  private Map<String, Object> otherProperties = new HashMap<>();

  // @anchor:getCountry-annotations:start
  // @anchor:getCountry-annotations:end
  // anchor:custom-getCountry-annotations:start
  // anchor:custom-getCountry-annotations:end
  public String getCountry() {
    return this.country;
  }

  // @anchor:setCountry-annotations:start
  // @anchor:setCountry-annotations:end
  // anchor:custom-setCountry-annotations:start
  // anchor:custom-setCountry-annotations:end
  public void setCountry(String country) {
    this.country = country;
  }

  // @anchor:getOrigin-annotations:start
  // @anchor:getOrigin-annotations:end
  // anchor:custom-getOrigin-annotations:start
  // anchor:custom-getOrigin-annotations:end
  public String getOrigin() {
    return this.origin;
  }

  // @anchor:setOrigin-annotations:start
  // @anchor:setOrigin-annotations:end
  // anchor:custom-setOrigin-annotations:start
  // anchor:custom-setOrigin-annotations:end
  public void setOrigin(String origin) {
    this.origin = origin;
  }

  // @anchor:getCoatLength-annotations:start
  // @anchor:getCoatLength-annotations:end
  // anchor:custom-getCoatLength-annotations:start
  // anchor:custom-getCoatLength-annotations:end
  public String getCoatLength() {
    return this.coatLength;
  }

  // @anchor:setCoatLength-annotations:start
  // @anchor:setCoatLength-annotations:end
  // anchor:custom-setCoatLength-annotations:start
  // anchor:custom-setCoatLength-annotations:end
  public void setCoatLength(String coatLength) {
    this.coatLength = coatLength;
  }

  // @anchor:methods:start
  // @anchor:methods:end
  // anchor:custom-methods:start
  // anchor:custom-methods:end

  @JsonAnyGetter
  public Map<String, Object> getOtherProperties() {
    return otherProperties;
  }

  @JsonAnySetter
  public void add(String key, Object value) {
    otherProperties.put(key, value);
  }

}

These expanders have the same isApplicable as TestPutInputModelExpander.