我得到了RestCallDefinition:
@GET
@Path("/results")
public Response searchTrippleOObjects(ApiSearchParameterMap map)
{
[...]
return result;
}
ApiSearchParameterMap定义为:
@ApiModel(description = "provides a lsit of parameters")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "...")
public class ApiSearchParameterMap extends HashMap<String, ApiSearchParameter>
{
[...]
}
ApiSearchParameter定义为:
@ApiModel(description = "provides a parameter")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2018-11-29T10:17:38.652+01:00[Europe/Berlin]")
public class ApiSearchParameter {
@JsonProperty("param")
private SearchParamNames param = null;
@JsonProperty("value")
private String value = null;
[...]
}
最后是SearchParameterNames:
public enum SearchParamNames {
OCCASION("occasion"),
LOCATION("location"),
DATE("date");
[...]
}
每次我输入此代码时,“ map”始终为null。我尝试过:
没有人工作...
如何正确编写请求以初始化“地图”?