forked from loafle/openapi-generator-original
update jaxrs jersey1 templates and sample output #4091
This commit is contained in:
parent
1a1d0aebc8
commit
dde24eb9c2
@ -1,42 +1,42 @@
|
|||||||
{{#required}}
|
{{#required}}
|
||||||
@NotNull
|
@NotNull
|
||||||
{{/required}}
|
{{/required}}
|
||||||
{{#pattern}}
|
{{#pattern}}
|
||||||
@Pattern(regexp="{{pattern}}")
|
@Pattern(regexp="{{pattern}}")
|
||||||
{{/pattern}}
|
{{/pattern}}
|
||||||
{{#minLength}}
|
{{#minLength}}
|
||||||
{{#maxLength}}
|
{{#maxLength}}
|
||||||
@Size(min={{minLength}},max={{maxLength}})
|
@Size(min={{minLength}},max={{maxLength}})
|
||||||
{{/maxLength}}
|
{{/maxLength}}
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{#minLength}}
|
{{#minLength}}
|
||||||
{{^maxLength}}
|
{{^maxLength}}
|
||||||
@Size(min={{minLength}})
|
@Size(min={{minLength}})
|
||||||
{{/maxLength}}
|
{{/maxLength}}
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{^minLength}}
|
{{^minLength}}
|
||||||
{{#maxLength}}
|
{{#maxLength}}
|
||||||
@Size(max={{maxLength}})
|
@Size(max={{maxLength}})
|
||||||
{{/maxLength}}
|
{{/maxLength}}
|
||||||
{{/minLength}}
|
{{/minLength}}
|
||||||
{{#minItems}}
|
{{#minItems}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
@Size(min={{minItems}},max={{maxItems}})
|
@Size(min={{minItems}},max={{maxItems}})
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{#minItems}}
|
{{#minItems}}
|
||||||
{{^maxItems}}
|
{{^maxItems}}
|
||||||
@Size(min={{minItems}})
|
@Size(min={{minItems}})
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{^minItems}}
|
{{^minItems}}
|
||||||
{{#maxItems}}
|
{{#maxItems}}
|
||||||
@Size(max={{maxItems}})
|
@Size(max={{maxItems}})
|
||||||
{{/maxItems}}
|
{{/maxItems}}
|
||||||
{{/minItems}}
|
{{/minItems}}
|
||||||
{{#minimum}}
|
{{#minimum}}
|
||||||
@Min({{minimum}})
|
// @Min({{minimum}})
|
||||||
{{/minimum}}
|
{{/minimum}}
|
||||||
{{#maximum}}
|
{{#maximum}}
|
||||||
@Max({{maximum}})
|
// @Max({{maximum}})
|
||||||
{{/maximum}}
|
{{/maximum}}
|
@ -1,30 +1,32 @@
|
|||||||
package {{package}};
|
package {{package}};
|
||||||
|
|
||||||
import {{package}}.*;
|
import {{package}}.*;
|
||||||
import {{modelPackage}}.*;
|
import {{modelPackage}}.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
{{#imports}}import {{import}};
|
{{#imports}}import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import {{package}}.NotFoundException;
|
import {{package}}.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
{{#useBeanValidation}}
|
||||||
{{>generatedAnnotation}}
|
import javax.validation.constraints.*;
|
||||||
{{#operations}}
|
{{/useBeanValidation}}
|
||||||
public abstract class {{classname}}Service {
|
{{>generatedAnnotation}}
|
||||||
{{#operation}}
|
{{#operations}}
|
||||||
public abstract Response {{nickname}}({{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}},{{/allParams}}SecurityContext securityContext)
|
public abstract class {{classname}}Service {
|
||||||
throws NotFoundException;
|
{{#operation}}
|
||||||
{{/operation}}
|
public abstract Response {{nickname}}({{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}},{{/allParams}}SecurityContext securityContext)
|
||||||
}
|
throws NotFoundException;
|
||||||
{{/operations}}
|
{{/operation}}
|
||||||
|
}
|
||||||
|
{{/operations}}
|
||||||
|
@ -1,34 +1,36 @@
|
|||||||
package {{package}}.impl;
|
package {{package}}.impl;
|
||||||
|
|
||||||
import {{package}}.*;
|
import {{package}}.*;
|
||||||
import {{modelPackage}}.*;
|
import {{modelPackage}}.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
{{#imports}}import {{import}};
|
{{#imports}}import {{import}};
|
||||||
{{/imports}}
|
{{/imports}}
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import {{package}}.NotFoundException;
|
import {{package}}.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
{{#useBeanValidation}}
|
||||||
{{>generatedAnnotation}}
|
import javax.validation.constraints.*;
|
||||||
{{#operations}}
|
{{/useBeanValidation}}
|
||||||
public class {{classname}}ServiceImpl extends {{classname}}Service {
|
{{>generatedAnnotation}}
|
||||||
{{#operation}}
|
{{#operations}}
|
||||||
@Override
|
public class {{classname}}ServiceImpl extends {{classname}}Service {
|
||||||
public Response {{nickname}}({{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}}, {{/allParams}}SecurityContext securityContext)
|
{{#operation}}
|
||||||
throws NotFoundException {
|
@Override
|
||||||
// do some magic!
|
public Response {{nickname}}({{#allParams}}{{>serviceQueryParams}}{{>servicePathParams}}{{>serviceHeaderParams}}{{>serviceBodyParams}}{{>serviceFormParams}}, {{/allParams}}SecurityContext securityContext)
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
throws NotFoundException {
|
||||||
}
|
// do some magic!
|
||||||
{{/operation}}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
{{/operations}}
|
{{/operation}}
|
||||||
|
}
|
||||||
|
{{/operations}}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
|
|
||||||
public class ApiException extends Exception{
|
public class ApiException extends Exception{
|
||||||
private int code;
|
private int code;
|
||||||
public ApiException (int code, String msg) {
|
public ApiException (int code, String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,22 +1,22 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
import javax.servlet.*;
|
import javax.servlet.*;
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
|
||||||
|
|
||||||
public class ApiOriginFilter implements javax.servlet.Filter {
|
public class ApiOriginFilter implements javax.servlet.Filter {
|
||||||
public void doFilter(ServletRequest request, ServletResponse response,
|
public void doFilter(ServletRequest request, ServletResponse response,
|
||||||
FilterChain chain) throws IOException, ServletException {
|
FilterChain chain) throws IOException, ServletException {
|
||||||
HttpServletResponse res = (HttpServletResponse) response;
|
HttpServletResponse res = (HttpServletResponse) response;
|
||||||
res.addHeader("Access-Control-Allow-Origin", "*");
|
res.addHeader("Access-Control-Allow-Origin", "*");
|
||||||
res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
|
res.addHeader("Access-Control-Allow-Methods", "GET, POST, DELETE, PUT");
|
||||||
res.addHeader("Access-Control-Allow-Headers", "Content-Type");
|
res.addHeader("Access-Control-Allow-Headers", "Content-Type");
|
||||||
chain.doFilter(request, response);
|
chain.doFilter(request, response);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void destroy() {}
|
public void destroy() {}
|
||||||
|
|
||||||
public void init(FilterConfig filterConfig) throws ServletException {}
|
public void init(FilterConfig filterConfig) throws ServletException {}
|
||||||
}
|
}
|
@ -1,69 +1,69 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
@javax.xml.bind.annotation.XmlRootElement
|
@javax.xml.bind.annotation.XmlRootElement
|
||||||
|
|
||||||
public class ApiResponseMessage {
|
public class ApiResponseMessage {
|
||||||
public static final int ERROR = 1;
|
public static final int ERROR = 1;
|
||||||
public static final int WARNING = 2;
|
public static final int WARNING = 2;
|
||||||
public static final int INFO = 3;
|
public static final int INFO = 3;
|
||||||
public static final int OK = 4;
|
public static final int OK = 4;
|
||||||
public static final int TOO_BUSY = 5;
|
public static final int TOO_BUSY = 5;
|
||||||
|
|
||||||
int code;
|
int code;
|
||||||
String type;
|
String type;
|
||||||
String message;
|
String message;
|
||||||
|
|
||||||
public ApiResponseMessage(){}
|
public ApiResponseMessage(){}
|
||||||
|
|
||||||
public ApiResponseMessage(int code, String message){
|
public ApiResponseMessage(int code, String message){
|
||||||
this.code = code;
|
this.code = code;
|
||||||
switch(code){
|
switch(code){
|
||||||
case ERROR:
|
case ERROR:
|
||||||
setType("error");
|
setType("error");
|
||||||
break;
|
break;
|
||||||
case WARNING:
|
case WARNING:
|
||||||
setType("warning");
|
setType("warning");
|
||||||
break;
|
break;
|
||||||
case INFO:
|
case INFO:
|
||||||
setType("info");
|
setType("info");
|
||||||
break;
|
break;
|
||||||
case OK:
|
case OK:
|
||||||
setType("ok");
|
setType("ok");
|
||||||
break;
|
break;
|
||||||
case TOO_BUSY:
|
case TOO_BUSY:
|
||||||
setType("too busy");
|
setType("too busy");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
setType("unknown");
|
setType("unknown");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
|
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
public int getCode() {
|
public int getCode() {
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCode(int code) {
|
public void setCode(int code) {
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getType() {
|
public String getType() {
|
||||||
return type;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setType(String type) {
|
public void setType(String type) {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setMessage(String message) {
|
public void setMessage(String message) {
|
||||||
this.message = message;
|
this.message = message;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,100 +1,101 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
import io.swagger.api.FakeApiService;
|
import io.swagger.api.FakeApiService;
|
||||||
import io.swagger.api.factories.FakeApiServiceFactory;
|
import io.swagger.api.factories.FakeApiServiceFactory;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import io.swagger.jaxrs.*;
|
import io.swagger.jaxrs.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
import java.math.BigDecimal;
|
|
||||||
import io.swagger.model.Client;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import io.swagger.model.Client;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
|
||||||
import io.swagger.api.NotFoundException;
|
import java.util.List;
|
||||||
|
import io.swagger.api.NotFoundException;
|
||||||
import java.io.InputStream;
|
|
||||||
|
import java.io.InputStream;
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.ws.rs.core.Context;
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Context;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.ws.rs.*;
|
||||||
@Path("/fake")
|
|
||||||
|
@Path("/fake")
|
||||||
|
|
||||||
@io.swagger.annotations.Api(description = "the fake API")
|
|
||||||
|
@io.swagger.annotations.Api(description = "the fake API")
|
||||||
public class FakeApi {
|
|
||||||
private final FakeApiService delegate = FakeApiServiceFactory.getFakeApi();
|
public class FakeApi {
|
||||||
|
private final FakeApiService delegate = FakeApiServiceFactory.getFakeApi();
|
||||||
@PATCH
|
|
||||||
|
@PATCH
|
||||||
@Consumes({ "application/json" })
|
|
||||||
@Produces({ "application/json" })
|
@Consumes({ "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "", response = Client.class, tags={ "fake", })
|
@Produces({ "application/json" })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
public Response testClientModel(
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
|
||||||
@ApiParam(value = "client model" ,required=true) Client body,
|
public Response testClientModel(
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "client model" ,required=true) Client body,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.testClientModel(body,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.testClientModel(body,securityContext);
|
||||||
@POST
|
}
|
||||||
|
@POST
|
||||||
@Consumes({ "application/xml; charset=utf-8", "application/json; charset=utf-8" })
|
|
||||||
@Produces({ "application/xml; charset=utf-8", "application/json; charset=utf-8" })
|
@Consumes({ "application/xml; charset=utf-8", "application/json; charset=utf-8" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", response = void.class, authorizations = {
|
@Produces({ "application/xml; charset=utf-8", "application/json; charset=utf-8" })
|
||||||
@io.swagger.annotations.Authorization(value = "http_basic_test")
|
@io.swagger.annotations.ApiOperation(value = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", notes = "Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 ", response = void.class, authorizations = {
|
||||||
}, tags={ "fake", })
|
@io.swagger.annotations.Authorization(value = "http_basic_test")
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
}, tags={ "fake", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = void.class),
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = void.class),
|
||||||
public Response testEndpointParameters(
|
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
||||||
@ApiParam(value = "None", required=true) @FormParam("number") BigDecimal number,
|
public Response testEndpointParameters(
|
||||||
@ApiParam(value = "None", required=true) @FormParam("double") Double _double,
|
@ApiParam(value = "None", required=true) @FormParam("number") BigDecimal number,
|
||||||
@ApiParam(value = "None", required=true) @FormParam("pattern_without_delimiter") String patternWithoutDelimiter,
|
@ApiParam(value = "None", required=true) @FormParam("double") Double _double,
|
||||||
@ApiParam(value = "None", required=true) @FormParam("byte") byte[] _byte,
|
@ApiParam(value = "None", required=true) @FormParam("pattern_without_delimiter") String patternWithoutDelimiter,
|
||||||
@ApiParam(value = "None") @FormParam("integer") Integer integer,
|
@ApiParam(value = "None", required=true) @FormParam("byte") byte[] _byte,
|
||||||
@ApiParam(value = "None") @FormParam("int32") Integer int32,
|
@ApiParam(value = "None") @FormParam("integer") Integer integer,
|
||||||
@ApiParam(value = "None") @FormParam("int64") Long int64,
|
@ApiParam(value = "None") @FormParam("int32") Integer int32,
|
||||||
@ApiParam(value = "None") @FormParam("float") Float _float,
|
@ApiParam(value = "None") @FormParam("int64") Long int64,
|
||||||
@ApiParam(value = "None") @FormParam("string") String string,
|
@ApiParam(value = "None") @FormParam("float") Float _float,
|
||||||
@ApiParam(value = "None") @FormParam("binary") byte[] binary,
|
@ApiParam(value = "None") @FormParam("string") String string,
|
||||||
@ApiParam(value = "None") @FormParam("date") Date date,
|
@ApiParam(value = "None") @FormParam("binary") byte[] binary,
|
||||||
@ApiParam(value = "None") @FormParam("dateTime") Date dateTime,
|
@ApiParam(value = "None") @FormParam("date") Date date,
|
||||||
@ApiParam(value = "None") @FormParam("password") String password,
|
@ApiParam(value = "None") @FormParam("dateTime") Date dateTime,
|
||||||
@ApiParam(value = "None") @FormParam("callback") String paramCallback,
|
@ApiParam(value = "None") @FormParam("password") String password,
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "None") @FormParam("callback") String paramCallback,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binary,date,dateTime,password,paramCallback,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.testEndpointParameters(number,_double,patternWithoutDelimiter,_byte,integer,int32,int64,_float,string,binary,date,dateTime,password,paramCallback,securityContext);
|
||||||
@GET
|
}
|
||||||
|
@GET
|
||||||
@Consumes({ "*/*" })
|
|
||||||
@Produces({ "*/*" })
|
@Consumes({ "*/*" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "To test enum parameters", notes = "", response = void.class, tags={ "fake" })
|
@Produces({ "*/*" })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiOperation(value = "To test enum parameters", notes = "To test enum parameters", response = void.class, tags={ "fake" })
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = void.class),
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid request", response = void.class),
|
||||||
public Response testEnumParameters(
|
@io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = void.class) })
|
||||||
@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @FormParam("enum_form_string_array") List<String> enumFormStringArray,
|
public Response testEnumParameters(
|
||||||
@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,
|
@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $") @FormParam("enum_form_string_array") List<String> enumFormStringArray,
|
||||||
@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray,
|
@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString,
|
||||||
@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,
|
@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $")@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray,
|
||||||
@ApiParam(value = "Query parameter enum test (string array)", allowableValues=">, $") @QueryParam("enum_query_string_array") List<String> enumQueryStringArray,
|
@ApiParam(value = "Header parameter enum test (string)" , allowableValues="_abc, -efg, (xyz)", defaultValue="-efg")@HeaderParam("enum_header_string") String enumHeaderString,
|
||||||
@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,
|
@ApiParam(value = "Query parameter enum test (string array)", allowableValues=">, $") @QueryParam("enum_query_string_array") List<String> enumQueryStringArray,
|
||||||
@ApiParam(value = "Query parameter enum test (double)") @QueryParam("enum_query_integer") BigDecimal enumQueryInteger,
|
@ApiParam(value = "Query parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @QueryParam("enum_query_string") String enumQueryString,
|
||||||
@ApiParam(value = "Query parameter enum test (double)") @FormParam("enum_query_double") Double enumQueryDouble,
|
@ApiParam(value = "Query parameter enum test (double)") @QueryParam("enum_query_integer") Integer enumQueryInteger,
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "Query parameter enum test (double)") @FormParam("enum_query_double") Double enumQueryDouble,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.testEnumParameters(enumFormStringArray,enumFormString,enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.testEnumParameters(enumFormStringArray,enumFormString,enumHeaderStringArray,enumHeaderString,enumQueryStringArray,enumQueryString,enumQueryInteger,enumQueryDouble,securityContext);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,31 +1,31 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import io.swagger.model.Client;
|
import io.swagger.model.Client;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public abstract class FakeApiService {
|
public abstract class FakeApiService {
|
||||||
public abstract Response testClientModel(Client body,SecurityContext securityContext)
|
public abstract Response testClientModel(Client body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,byte[] binary,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext)
|
public abstract Response testEndpointParameters(BigDecimal number,Double _double,String patternWithoutDelimiter,byte[] _byte,Integer integer,Integer int32,Long int64,Float _float,String string,byte[] binary,Date date,Date dateTime,String password,String paramCallback,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response testEnumParameters(List<String> enumFormStringArray,String enumFormString,List<String> enumHeaderStringArray,String enumHeaderString,List<String> enumQueryStringArray,String enumQueryString,BigDecimal enumQueryInteger,Double enumQueryDouble,SecurityContext securityContext)
|
public abstract Response testEnumParameters(List<String> enumFormStringArray,String enumFormString,List<String> enumHeaderStringArray,String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger,Double enumQueryDouble,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
}
|
}
|
||||||
|
@ -1,27 +1,27 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.DeserializationFeature;
|
import com.fasterxml.jackson.databind.DeserializationFeature;
|
||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import com.fasterxml.jackson.databind.SerializationFeature;
|
import com.fasterxml.jackson.databind.SerializationFeature;
|
||||||
import com.fasterxml.jackson.datatype.joda.JodaModule;
|
import com.fasterxml.jackson.datatype.joda.JodaModule;
|
||||||
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
|
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
|
||||||
|
|
||||||
import javax.ws.rs.Produces;
|
import javax.ws.rs.Produces;
|
||||||
import javax.ws.rs.core.MediaType;
|
import javax.ws.rs.core.MediaType;
|
||||||
import javax.ws.rs.ext.Provider;
|
import javax.ws.rs.ext.Provider;
|
||||||
|
|
||||||
@Provider
|
@Provider
|
||||||
@Produces({MediaType.APPLICATION_JSON})
|
@Produces({MediaType.APPLICATION_JSON})
|
||||||
public class JacksonJsonProvider extends JacksonJaxbJsonProvider {
|
public class JacksonJsonProvider extends JacksonJaxbJsonProvider {
|
||||||
|
|
||||||
public JacksonJsonProvider() {
|
public JacksonJsonProvider() {
|
||||||
|
|
||||||
ObjectMapper objectMapper = new ObjectMapper()
|
ObjectMapper objectMapper = new ObjectMapper()
|
||||||
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
|
.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
|
||||||
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
|
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
|
||||||
.registerModule(new JodaModule())
|
.registerModule(new JodaModule())
|
||||||
.setDateFormat(new RFC3339DateFormat());
|
.setDateFormat(new RFC3339DateFormat());
|
||||||
|
|
||||||
setMapper(objectMapper);
|
setMapper(objectMapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,10 +1,10 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
|
|
||||||
public class NotFoundException extends ApiException {
|
public class NotFoundException extends ApiException {
|
||||||
private int code;
|
private int code;
|
||||||
public NotFoundException (int code, String msg) {
|
public NotFoundException (int code, String msg) {
|
||||||
super(code, msg);
|
super(code, msg);
|
||||||
this.code = code;
|
this.code = code;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,194 +1,191 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
import io.swagger.api.PetApiService;
|
import io.swagger.api.PetApiService;
|
||||||
import io.swagger.api.factories.PetApiServiceFactory;
|
import io.swagger.api.factories.PetApiServiceFactory;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import io.swagger.jaxrs.*;
|
import io.swagger.jaxrs.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import io.swagger.model.Pet;
|
import io.swagger.model.ModelApiResponse;
|
||||||
|
import io.swagger.model.Pet;
|
||||||
import java.util.List;
|
|
||||||
import io.swagger.api.NotFoundException;
|
import java.util.List;
|
||||||
|
import io.swagger.api.NotFoundException;
|
||||||
import java.io.InputStream;
|
|
||||||
|
import java.io.InputStream;
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.ws.rs.core.Context;
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Context;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.ws.rs.*;
|
||||||
@Path("/pet")
|
|
||||||
|
@Path("/pet")
|
||||||
|
|
||||||
@io.swagger.annotations.Api(description = "the pet API")
|
|
||||||
|
@io.swagger.annotations.Api(description = "the pet API")
|
||||||
public class PetApi {
|
|
||||||
private final PetApiService delegate = PetApiServiceFactory.getPetApi();
|
public class PetApi {
|
||||||
|
private final PetApiService delegate = PetApiServiceFactory.getPetApi();
|
||||||
@POST
|
|
||||||
|
@POST
|
||||||
@Consumes({ "application/json", "application/xml" })
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Consumes({ "application/json", "application/xml" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Add a new pet to the store", notes = "", response = void.class, authorizations = {
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
@io.swagger.annotations.ApiOperation(value = "Add a new pet to the store", notes = "", response = void.class, authorizations = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
})
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
}, tags={ "pet", })
|
})
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = void.class) })
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
public Response addPet(
|
@io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = void.class) })
|
||||||
@ApiParam(value = "Pet object that needs to be added to the store" ) Pet body,
|
public Response addPet(
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.addPet(body,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.addPet(body,securityContext);
|
||||||
@DELETE
|
}
|
||||||
@Path("/{petId}")
|
@DELETE
|
||||||
|
@Path("/{petId}")
|
||||||
@Produces({ "application/json", "application/xml" })
|
|
||||||
@io.swagger.annotations.ApiOperation(value = "Deletes a pet", notes = "", response = void.class, authorizations = {
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
@io.swagger.annotations.ApiOperation(value = "Deletes a pet", notes = "", response = void.class, authorizations = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
})
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
}, tags={ "pet", })
|
})
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = void.class) })
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
public Response deletePet(
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid pet value", response = void.class) })
|
||||||
@ApiParam(value = "Pet id to delete",required=true) @PathParam("petId") Long petId,
|
public Response deletePet(
|
||||||
@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,
|
@ApiParam(value = "Pet id to delete",required=true) @PathParam("petId") Long petId,
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "" )@HeaderParam("api_key") String apiKey,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.deletePet(petId,apiKey,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.deletePet(petId,apiKey,securityContext);
|
||||||
@GET
|
}
|
||||||
@Path("/findByStatus")
|
@GET
|
||||||
|
@Path("/findByStatus")
|
||||||
@Produces({ "application/json", "application/xml" })
|
|
||||||
@io.swagger.annotations.ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
@io.swagger.annotations.ApiOperation(value = "Finds Pets by status", notes = "Multiple status values can be provided with comma separated strings", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
})
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
}, tags={ "pet", })
|
})
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Pet.class, responseContainer = "List") })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
public Response findPetsByStatus(
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid status value", response = Pet.class, responseContainer = "List") })
|
||||||
@ApiParam(value = "Status values that need to be considered for filter", allowableValues="available, pending, sold", defaultValue="available") @DefaultValue("available") @QueryParam("status") List<String> status,
|
public Response findPetsByStatus(
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "Status values that need to be considered for filter",required=true, allowableValues="available, pending, sold") @QueryParam("status") List<String> status,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.findPetsByStatus(status,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.findPetsByStatus(status,securityContext);
|
||||||
@GET
|
}
|
||||||
@Path("/findByTags")
|
@GET
|
||||||
|
@Path("/findByTags")
|
||||||
@Produces({ "application/json", "application/xml" })
|
|
||||||
@io.swagger.annotations.ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
@io.swagger.annotations.ApiOperation(value = "Finds Pets by tags", notes = "Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing.", response = Pet.class, responseContainer = "List", authorizations = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
})
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
}, tags={ "pet", })
|
})
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Pet.class, responseContainer = "List") })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class, responseContainer = "List"),
|
||||||
public Response findPetsByTags(
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid tag value", response = Pet.class, responseContainer = "List") })
|
||||||
@ApiParam(value = "Tags to filter by") @QueryParam("tags") List<String> tags,
|
public Response findPetsByTags(
|
||||||
@Context SecurityContext securityContext)
|
@ApiParam(value = "Tags to filter by",required=true) @QueryParam("tags") List<String> tags,
|
||||||
throws NotFoundException {
|
@Context SecurityContext securityContext)
|
||||||
return delegate.findPetsByTags(tags,securityContext);
|
throws NotFoundException {
|
||||||
}
|
return delegate.findPetsByTags(tags,securityContext);
|
||||||
@GET
|
}
|
||||||
@Path("/{petId}")
|
@GET
|
||||||
|
@Path("/{petId}")
|
||||||
@Produces({ "application/json", "application/xml" })
|
|
||||||
@io.swagger.annotations.ApiOperation(value = "Find pet by ID", notes = "Returns a pet when ID < 10. ID > 10 or nonintegers will simulate API error conditions", response = Pet.class, authorizations = {
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
@io.swagger.annotations.ApiOperation(value = "Find pet by ID", notes = "Returns a single pet", response = Pet.class, authorizations = {
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
@io.swagger.annotations.Authorization(value = "api_key")
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
}, tags={ "pet", })
|
||||||
}),
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.Authorization(value = "api_key")
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class),
|
||||||
}, tags={ "pet", })
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Pet.class),
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Pet.class) })
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Pet.class),
|
public Response getPetById(
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Pet.class),
|
@ApiParam(value = "ID of pet to return",required=true) @PathParam("petId") Long petId,
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = Pet.class) })
|
@Context SecurityContext securityContext)
|
||||||
public Response getPetById(
|
throws NotFoundException {
|
||||||
@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("petId") Long petId,
|
return delegate.getPetById(petId,securityContext);
|
||||||
@Context SecurityContext securityContext)
|
}
|
||||||
throws NotFoundException {
|
@PUT
|
||||||
return delegate.getPetById(petId,securityContext);
|
|
||||||
}
|
@Consumes({ "application/json", "application/xml" })
|
||||||
@PUT
|
@Produces({ "application/xml", "application/json" })
|
||||||
|
@io.swagger.annotations.ApiOperation(value = "Update an existing pet", notes = "", response = void.class, authorizations = {
|
||||||
@Consumes({ "application/json", "application/xml" })
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@Produces({ "application/json", "application/xml" })
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@io.swagger.annotations.ApiOperation(value = "Update an existing pet", notes = "", response = void.class, authorizations = {
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
})
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
})
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = void.class),
|
||||||
}, tags={ "pet", })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = void.class),
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = void.class) })
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = void.class),
|
public Response updatePet(
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "Pet not found", response = void.class),
|
@ApiParam(value = "Pet object that needs to be added to the store" ,required=true) Pet body,
|
||||||
@io.swagger.annotations.ApiResponse(code = 405, message = "Validation exception", response = void.class) })
|
@Context SecurityContext securityContext)
|
||||||
public Response updatePet(
|
throws NotFoundException {
|
||||||
@ApiParam(value = "Pet object that needs to be added to the store" ) Pet body,
|
return delegate.updatePet(body,securityContext);
|
||||||
@Context SecurityContext securityContext)
|
}
|
||||||
throws NotFoundException {
|
@POST
|
||||||
return delegate.updatePet(body,securityContext);
|
@Path("/{petId}")
|
||||||
}
|
@Consumes({ "application/x-www-form-urlencoded" })
|
||||||
@POST
|
@Produces({ "application/xml", "application/json" })
|
||||||
@Path("/{petId}")
|
@io.swagger.annotations.ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = void.class, authorizations = {
|
||||||
@Consumes({ "application/x-www-form-urlencoded" })
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@Produces({ "application/json", "application/xml" })
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@io.swagger.annotations.ApiOperation(value = "Updates a pet in the store with form data", notes = "", response = void.class, authorizations = {
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
})
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
}, tags={ "pet", })
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
})
|
@io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = void.class) })
|
||||||
}, tags={ "pet", })
|
public Response updatePetWithForm(
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathParam("petId") Long petId,
|
||||||
@io.swagger.annotations.ApiResponse(code = 405, message = "Invalid input", response = void.class) })
|
@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,
|
||||||
public Response updatePetWithForm(
|
@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,
|
||||||
@ApiParam(value = "ID of pet that needs to be updated",required=true) @PathParam("petId") String petId,
|
@Context SecurityContext securityContext)
|
||||||
@ApiParam(value = "Updated name of the pet") @FormParam("name") String name,
|
throws NotFoundException {
|
||||||
@ApiParam(value = "Updated status of the pet") @FormParam("status") String status,
|
return delegate.updatePetWithForm(petId,name,status,securityContext);
|
||||||
@Context SecurityContext securityContext)
|
}
|
||||||
throws NotFoundException {
|
@POST
|
||||||
return delegate.updatePetWithForm(petId,name,status,securityContext);
|
@Path("/{petId}/uploadImage")
|
||||||
}
|
@Consumes({ "multipart/form-data" })
|
||||||
@POST
|
@Produces({ "application/json" })
|
||||||
@Path("/{petId}/uploadImage")
|
@io.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = {
|
||||||
@Consumes({ "multipart/form-data" })
|
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
||||||
@Produces({ "application/json", "application/xml" })
|
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
||||||
@io.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = void.class, authorizations = {
|
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
||||||
@io.swagger.annotations.Authorization(value = "petstore_auth", scopes = {
|
})
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "write:pets", description = "modify pets in your account"),
|
}, tags={ "pet" })
|
||||||
@io.swagger.annotations.AuthorizationScope(scope = "read:pets", description = "read your pets")
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
})
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
|
||||||
}, tags={ "pet" })
|
public Response uploadFile(
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@ApiParam(value = "ID of pet to update",required=true) @PathParam("petId") Long petId,
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
@FormDataParam("additionalMetadata") String additionalMetadata,
|
||||||
public Response uploadFile(
|
@FormDataParam("file") InputStream inputStream,
|
||||||
@ApiParam(value = "ID of pet to update",required=true) @PathParam("petId") Long petId,
|
@FormDataParam("file") FormDataContentDisposition fileDetail,
|
||||||
@FormDataParam("additionalMetadata") String additionalMetadata,
|
@Context SecurityContext securityContext)
|
||||||
@FormDataParam("file") InputStream inputStream,
|
throws NotFoundException {
|
||||||
@FormDataParam("file") FormDataContentDisposition fileDetail,
|
return delegate.uploadFile(petId,additionalMetadata,inputStream, fileDetail,securityContext);
|
||||||
@Context SecurityContext securityContext)
|
}
|
||||||
throws NotFoundException {
|
}
|
||||||
return delegate.uploadFile(petId,additionalMetadata,inputStream, fileDetail,securityContext);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -1,40 +1,41 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import io.swagger.model.Pet;
|
import io.swagger.model.ModelApiResponse;
|
||||||
|
import io.swagger.model.Pet;
|
||||||
import java.util.List;
|
|
||||||
import io.swagger.api.NotFoundException;
|
import java.util.List;
|
||||||
|
import io.swagger.api.NotFoundException;
|
||||||
import java.io.InputStream;
|
|
||||||
|
import java.io.InputStream;
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.Response;
|
||||||
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
public abstract class PetApiService {
|
|
||||||
public abstract Response addPet(Pet body,SecurityContext securityContext)
|
public abstract class PetApiService {
|
||||||
throws NotFoundException;
|
public abstract Response addPet(Pet body,SecurityContext securityContext)
|
||||||
public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response deletePet(Long petId,String apiKey,SecurityContext securityContext)
|
||||||
public abstract Response findPetsByStatus( List<String> status,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response findPetsByStatus( @NotNull List<String> status,SecurityContext securityContext)
|
||||||
public abstract Response findPetsByTags( List<String> tags,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response findPetsByTags( @NotNull List<String> tags,SecurityContext securityContext)
|
||||||
public abstract Response getPetById(Long petId,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response getPetById(Long petId,SecurityContext securityContext)
|
||||||
public abstract Response updatePet(Pet body,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response updatePet(Pet body,SecurityContext securityContext)
|
||||||
public abstract Response updatePetWithForm(String petId,String name,String status,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response updatePetWithForm(Long petId,String name,String status,SecurityContext securityContext)
|
||||||
public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext)
|
throws NotFoundException;
|
||||||
throws NotFoundException;
|
public abstract Response uploadFile(Long petId,String additionalMetadata,InputStream fileInputStream, FormDataContentDisposition fileDetail,SecurityContext securityContext)
|
||||||
}
|
throws NotFoundException;
|
||||||
|
}
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
|
import com.fasterxml.jackson.databind.util.ISO8601DateFormat;
|
||||||
import com.fasterxml.jackson.databind.util.ISO8601Utils;
|
import com.fasterxml.jackson.databind.util.ISO8601Utils;
|
||||||
|
|
||||||
import java.text.FieldPosition;
|
import java.text.FieldPosition;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
public class RFC3339DateFormat extends ISO8601DateFormat {
|
public class RFC3339DateFormat extends ISO8601DateFormat {
|
||||||
|
|
||||||
// Same as ISO8601DateFormat but serializing milliseconds.
|
// Same as ISO8601DateFormat but serializing milliseconds.
|
||||||
@Override
|
@Override
|
||||||
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
|
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) {
|
||||||
String value = ISO8601Utils.format(date, true);
|
String value = ISO8601Utils.format(date, true);
|
||||||
toAppendTo.append(value);
|
toAppendTo.append(value);
|
||||||
return toAppendTo;
|
return toAppendTo;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,94 +1,94 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
import io.swagger.api.StoreApiService;
|
import io.swagger.api.StoreApiService;
|
||||||
import io.swagger.api.factories.StoreApiServiceFactory;
|
import io.swagger.api.factories.StoreApiServiceFactory;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import io.swagger.jaxrs.*;
|
import io.swagger.jaxrs.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import io.swagger.model.Order;
|
import io.swagger.model.Order;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Context;
|
import javax.ws.rs.core.Context;
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.*;
|
||||||
|
|
||||||
@Path("/store")
|
@Path("/store")
|
||||||
|
|
||||||
|
|
||||||
@io.swagger.annotations.Api(description = "the store API")
|
@io.swagger.annotations.Api(description = "the store API")
|
||||||
|
|
||||||
public class StoreApi {
|
public class StoreApi {
|
||||||
private final StoreApiService delegate = StoreApiServiceFactory.getStoreApi();
|
private final StoreApiService delegate = StoreApiServiceFactory.getStoreApi();
|
||||||
|
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/order/{orderId}")
|
@Path("/order/{orderId}")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", response = void.class, tags={ "store", })
|
@io.swagger.annotations.ApiOperation(value = "Delete purchase order by ID", notes = "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors", response = void.class, tags={ "store", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = void.class),
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = void.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = void.class) })
|
||||||
public Response deleteOrder(
|
public Response deleteOrder(
|
||||||
@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("orderId") String orderId,
|
@ApiParam(value = "ID of the order that needs to be deleted",required=true) @PathParam("orderId") String orderId,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.deleteOrder(orderId,securityContext);
|
return delegate.deleteOrder(orderId,securityContext);
|
||||||
}
|
}
|
||||||
@GET
|
@GET
|
||||||
@Path("/inventory")
|
@Path("/inventory")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
@io.swagger.annotations.ApiOperation(value = "Returns pet inventories by status", notes = "Returns a map of status codes to quantities", response = Integer.class, responseContainer = "Map", authorizations = {
|
||||||
@io.swagger.annotations.Authorization(value = "api_key")
|
@io.swagger.annotations.Authorization(value = "api_key")
|
||||||
}, tags={ "store", })
|
}, tags={ "store", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Integer.class, responseContainer = "Map") })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Integer.class, responseContainer = "Map") })
|
||||||
public Response getInventory(
|
public Response getInventory(
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.getInventory(securityContext);
|
return delegate.getInventory(securityContext);
|
||||||
}
|
}
|
||||||
@GET
|
@GET
|
||||||
@Path("/order/{orderId}")
|
@Path("/order/{orderId}")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", })
|
@io.swagger.annotations.ApiOperation(value = "Find purchase order by ID", notes = "For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions", response = Order.class, tags={ "store", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Order.class),
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid ID supplied", response = Order.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Order.class) })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "Order not found", response = Order.class) })
|
||||||
public Response getOrderById(
|
public Response getOrderById(
|
||||||
@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("orderId") String orderId,
|
@ApiParam(value = "ID of pet that needs to be fetched",required=true) @PathParam("orderId") Long orderId,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.getOrderById(orderId,securityContext);
|
return delegate.getOrderById(orderId,securityContext);
|
||||||
}
|
}
|
||||||
@POST
|
@POST
|
||||||
@Path("/order")
|
@Path("/order")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class, tags={ "store" })
|
@io.swagger.annotations.ApiOperation(value = "Place an order for a pet", notes = "", response = Order.class, tags={ "store" })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Order.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Order.class) })
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid Order", response = Order.class) })
|
||||||
public Response placeOrder(
|
public Response placeOrder(
|
||||||
@ApiParam(value = "order placed for purchasing the pet" ) Order body,
|
@ApiParam(value = "order placed for purchasing the pet" ,required=true) Order body,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.placeOrder(body,securityContext);
|
return delegate.placeOrder(body,securityContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,32 +1,32 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import io.swagger.model.Order;
|
import io.swagger.model.Order;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public abstract class StoreApiService {
|
public abstract class StoreApiService {
|
||||||
public abstract Response deleteOrder(String orderId,SecurityContext securityContext)
|
public abstract Response deleteOrder( @Min(1)String orderId,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response getInventory(SecurityContext securityContext)
|
public abstract Response getInventory(SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response getOrderById(String orderId,SecurityContext securityContext)
|
public abstract Response getOrderById( @Min(1) @Max(5)Long orderId,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response placeOrder(Order body,SecurityContext securityContext)
|
public abstract Response placeOrder(Order body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
}
|
}
|
||||||
|
@ -1,42 +1,42 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
|
|
||||||
public class StringUtil {
|
public class StringUtil {
|
||||||
/**
|
/**
|
||||||
* Check if the given array contains the given value (with case-insensitive comparison).
|
* Check if the given array contains the given value (with case-insensitive comparison).
|
||||||
*
|
*
|
||||||
* @param array The array
|
* @param array The array
|
||||||
* @param value The value to search
|
* @param value The value to search
|
||||||
* @return true if the array contains the value
|
* @return true if the array contains the value
|
||||||
*/
|
*/
|
||||||
public static boolean containsIgnoreCase(String[] array, String value) {
|
public static boolean containsIgnoreCase(String[] array, String value) {
|
||||||
for (String str : array) {
|
for (String str : array) {
|
||||||
if (value == null && str == null) return true;
|
if (value == null && str == null) return true;
|
||||||
if (value != null && value.equalsIgnoreCase(str)) return true;
|
if (value != null && value.equalsIgnoreCase(str)) return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Join an array of strings with the given separator.
|
* Join an array of strings with the given separator.
|
||||||
* <p>
|
* <p>
|
||||||
* Note: This might be replaced by utility method from commons-lang or guava someday
|
* Note: This might be replaced by utility method from commons-lang or guava someday
|
||||||
* if one of those libraries is added as dependency.
|
* if one of those libraries is added as dependency.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @param array The array of strings
|
* @param array The array of strings
|
||||||
* @param separator The separator
|
* @param separator The separator
|
||||||
* @return the resulting string
|
* @return the resulting string
|
||||||
*/
|
*/
|
||||||
public static String join(String[] array, String separator) {
|
public static String join(String[] array, String separator) {
|
||||||
int len = array.length;
|
int len = array.length;
|
||||||
if (len == 0) return "";
|
if (len == 0) return "";
|
||||||
|
|
||||||
StringBuilder out = new StringBuilder();
|
StringBuilder out = new StringBuilder();
|
||||||
out.append(array[0]);
|
out.append(array[0]);
|
||||||
for (int i = 1; i < len; i++) {
|
for (int i = 1; i < len; i++) {
|
||||||
out.append(separator).append(array[i]);
|
out.append(separator).append(array[i]);
|
||||||
}
|
}
|
||||||
return out.toString();
|
return out.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,147 +1,147 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
import io.swagger.api.UserApiService;
|
import io.swagger.api.UserApiService;
|
||||||
import io.swagger.api.factories.UserApiServiceFactory;
|
import io.swagger.api.factories.UserApiServiceFactory;
|
||||||
|
|
||||||
import io.swagger.annotations.ApiParam;
|
import io.swagger.annotations.ApiParam;
|
||||||
import io.swagger.jaxrs.*;
|
import io.swagger.jaxrs.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.model.User;
|
import io.swagger.model.User;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Context;
|
import javax.ws.rs.core.Context;
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
import javax.ws.rs.*;
|
import javax.ws.rs.*;
|
||||||
|
|
||||||
@Path("/user")
|
@Path("/user")
|
||||||
|
|
||||||
|
|
||||||
@io.swagger.annotations.Api(description = "the user API")
|
@io.swagger.annotations.Api(description = "the user API")
|
||||||
|
|
||||||
public class UserApi {
|
public class UserApi {
|
||||||
private final UserApiService delegate = UserApiServiceFactory.getUserApi();
|
private final UserApiService delegate = UserApiServiceFactory.getUserApi();
|
||||||
|
|
||||||
@POST
|
@POST
|
||||||
|
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Create user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
||||||
public Response createUser(
|
public Response createUser(
|
||||||
@ApiParam(value = "Created user object" ) User body,
|
@ApiParam(value = "Created user object" ,required=true) User body,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.createUser(body,securityContext);
|
return delegate.createUser(body,securityContext);
|
||||||
}
|
}
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithArray")
|
@Path("/createWithArray")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = void.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = void.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
||||||
public Response createUsersWithArrayInput(
|
public Response createUsersWithArrayInput(
|
||||||
@ApiParam(value = "List of user object" ) List<User> body,
|
@ApiParam(value = "List of user object" ,required=true) List<User> body,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.createUsersWithArrayInput(body,securityContext);
|
return delegate.createUsersWithArrayInput(body,securityContext);
|
||||||
}
|
}
|
||||||
@POST
|
@POST
|
||||||
@Path("/createWithList")
|
@Path("/createWithList")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = void.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Creates list of users with given input array", notes = "", response = void.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
||||||
public Response createUsersWithListInput(
|
public Response createUsersWithListInput(
|
||||||
@ApiParam(value = "List of user object" ) List<User> body,
|
@ApiParam(value = "List of user object" ,required=true) List<User> body,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.createUsersWithListInput(body,securityContext);
|
return delegate.createUsersWithListInput(body,securityContext);
|
||||||
}
|
}
|
||||||
@DELETE
|
@DELETE
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Delete user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = void.class),
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = void.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
||||||
public Response deleteUser(
|
public Response deleteUser(
|
||||||
@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username,
|
@ApiParam(value = "The name that needs to be deleted",required=true) @PathParam("username") String username,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.deleteUser(username,securityContext);
|
return delegate.deleteUser(username,securityContext);
|
||||||
}
|
}
|
||||||
@GET
|
@GET
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Get user by user name", notes = "", response = User.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Get user by user name", notes = "", response = User.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = User.class),
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = User.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = User.class),
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username supplied", response = User.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = User.class) })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = User.class) })
|
||||||
public Response getUserByName(
|
public Response getUserByName(
|
||||||
@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ",required=true) @PathParam("username") String username,
|
@ApiParam(value = "The name that needs to be fetched. Use user1 for testing. ",required=true) @PathParam("username") String username,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.getUserByName(username,securityContext);
|
return delegate.getUserByName(username,securityContext);
|
||||||
}
|
}
|
||||||
@GET
|
@GET
|
||||||
@Path("/login")
|
@Path("/login")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Logs user into the system", notes = "", response = String.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Logs user into the system", notes = "", response = String.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class),
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = String.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = String.class) })
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid username/password supplied", response = String.class) })
|
||||||
public Response loginUser(
|
public Response loginUser(
|
||||||
@ApiParam(value = "The user name for login") @QueryParam("username") String username,
|
@ApiParam(value = "The user name for login",required=true) @QueryParam("username") String username,
|
||||||
@ApiParam(value = "The password for login in clear text") @QueryParam("password") String password,
|
@ApiParam(value = "The password for login in clear text",required=true) @QueryParam("password") String password,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.loginUser(username,password,securityContext);
|
return delegate.loginUser(username,password,securityContext);
|
||||||
}
|
}
|
||||||
@GET
|
@GET
|
||||||
@Path("/logout")
|
@Path("/logout")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Logs out current logged in user session", notes = "", response = void.class, tags={ "user", })
|
@io.swagger.annotations.ApiOperation(value = "Logs out current logged in user session", notes = "", response = void.class, tags={ "user", })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = void.class) })
|
||||||
public Response logoutUser(
|
public Response logoutUser(
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.logoutUser(securityContext);
|
return delegate.logoutUser(securityContext);
|
||||||
}
|
}
|
||||||
@PUT
|
@PUT
|
||||||
@Path("/{username}")
|
@Path("/{username}")
|
||||||
|
|
||||||
@Produces({ "application/json", "application/xml" })
|
@Produces({ "application/xml", "application/json" })
|
||||||
@io.swagger.annotations.ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user" })
|
@io.swagger.annotations.ApiOperation(value = "Updated user", notes = "This can only be done by the logged in user.", response = void.class, tags={ "user" })
|
||||||
@io.swagger.annotations.ApiResponses(value = {
|
@io.swagger.annotations.ApiResponses(value = {
|
||||||
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = void.class),
|
@io.swagger.annotations.ApiResponse(code = 400, message = "Invalid user supplied", response = void.class),
|
||||||
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
@io.swagger.annotations.ApiResponse(code = 404, message = "User not found", response = void.class) })
|
||||||
public Response updateUser(
|
public Response updateUser(
|
||||||
@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username,
|
@ApiParam(value = "name that need to be deleted",required=true) @PathParam("username") String username,
|
||||||
@ApiParam(value = "Updated user object" ) User body,
|
@ApiParam(value = "Updated user object" ,required=true) User body,
|
||||||
@Context SecurityContext securityContext)
|
@Context SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
return delegate.updateUser(username,body,securityContext);
|
return delegate.updateUser(username,body,securityContext);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,40 +1,40 @@
|
|||||||
package io.swagger.api;
|
package io.swagger.api;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.model.User;
|
import io.swagger.model.User;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public abstract class UserApiService {
|
public abstract class UserApiService {
|
||||||
public abstract Response createUser(User body,SecurityContext securityContext)
|
public abstract Response createUser(User body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response createUsersWithArrayInput(List<User> body,SecurityContext securityContext)
|
public abstract Response createUsersWithArrayInput(List<User> body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response createUsersWithListInput(List<User> body,SecurityContext securityContext)
|
public abstract Response createUsersWithListInput(List<User> body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response deleteUser(String username,SecurityContext securityContext)
|
public abstract Response deleteUser(String username,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response getUserByName(String username,SecurityContext securityContext)
|
public abstract Response getUserByName(String username,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response loginUser( String username, String password,SecurityContext securityContext)
|
public abstract Response loginUser( @NotNull String username, @NotNull String password,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response logoutUser(SecurityContext securityContext)
|
public abstract Response logoutUser(SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
public abstract Response updateUser(String username,User body,SecurityContext securityContext)
|
public abstract Response updateUser(String username,User body,SecurityContext securityContext)
|
||||||
throws NotFoundException;
|
throws NotFoundException;
|
||||||
}
|
}
|
||||||
|
@ -1,124 +1,125 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* AdditionalPropertiesClass
|
/**
|
||||||
*/
|
* AdditionalPropertiesClass
|
||||||
|
*/
|
||||||
public class AdditionalPropertiesClass {
|
|
||||||
@JsonProperty("map_property")
|
public class AdditionalPropertiesClass {
|
||||||
private Map<String, String> mapProperty = new HashMap<String, String>();
|
@JsonProperty("map_property")
|
||||||
|
private Map<String, String> mapProperty = new HashMap<String, String>();
|
||||||
@JsonProperty("map_of_map_property")
|
|
||||||
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
@JsonProperty("map_of_map_property")
|
||||||
|
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<String, Map<String, String>>();
|
||||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
|
||||||
this.mapProperty = mapProperty;
|
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||||
return this;
|
this.mapProperty = mapProperty;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
|
||||||
this.mapProperty.put(key, mapPropertyItem);
|
public AdditionalPropertiesClass putMapPropertyItem(String key, String mapPropertyItem) {
|
||||||
return this;
|
this.mapProperty.put(key, mapPropertyItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get mapProperty
|
/**
|
||||||
* @return mapProperty
|
* Get mapProperty
|
||||||
**/
|
* @return mapProperty
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Map<String, String> getMapProperty() {
|
@ApiModelProperty(value = "")
|
||||||
return mapProperty;
|
public Map<String, String> getMapProperty() {
|
||||||
}
|
return mapProperty;
|
||||||
|
}
|
||||||
public void setMapProperty(Map<String, String> mapProperty) {
|
|
||||||
this.mapProperty = mapProperty;
|
public void setMapProperty(Map<String, String> mapProperty) {
|
||||||
}
|
this.mapProperty = mapProperty;
|
||||||
|
}
|
||||||
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
|
||||||
this.mapOfMapProperty = mapOfMapProperty;
|
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
return this;
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
|
||||||
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
public AdditionalPropertiesClass putMapOfMapPropertyItem(String key, Map<String, String> mapOfMapPropertyItem) {
|
||||||
return this;
|
this.mapOfMapProperty.put(key, mapOfMapPropertyItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get mapOfMapProperty
|
/**
|
||||||
* @return mapOfMapProperty
|
* Get mapOfMapProperty
|
||||||
**/
|
* @return mapOfMapProperty
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
@ApiModelProperty(value = "")
|
||||||
return mapOfMapProperty;
|
public Map<String, Map<String, String>> getMapOfMapProperty() {
|
||||||
}
|
return mapOfMapProperty;
|
||||||
|
}
|
||||||
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
|
||||||
this.mapOfMapProperty = mapOfMapProperty;
|
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||||
}
|
this.mapOfMapProperty = mapOfMapProperty;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
}
|
||||||
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
|
AdditionalPropertiesClass additionalPropertiesClass = (AdditionalPropertiesClass) o;
|
||||||
Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
|
return Objects.equals(this.mapProperty, additionalPropertiesClass.mapProperty) &&
|
||||||
}
|
Objects.equals(this.mapOfMapProperty, additionalPropertiesClass.mapOfMapProperty);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(mapProperty, mapOfMapProperty);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(mapProperty, mapOfMapProperty);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class AdditionalPropertiesClass {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class AdditionalPropertiesClass {\n");
|
||||||
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
|
|
||||||
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n");
|
sb.append(" mapProperty: ").append(toIndentedString(mapProperty)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" mapOfMapProperty: ").append(toIndentedString(mapOfMapProperty)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,111 +1,115 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
/**
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
* Animal
|
import javax.validation.constraints.*;
|
||||||
*/
|
|
||||||
|
/**
|
||||||
public class Animal {
|
* Animal
|
||||||
@JsonProperty("className")
|
*/
|
||||||
private String className = null;
|
|
||||||
|
public class Animal {
|
||||||
@JsonProperty("color")
|
@JsonProperty("className")
|
||||||
private String color = "red";
|
private String className = null;
|
||||||
|
|
||||||
public Animal className(String className) {
|
@JsonProperty("color")
|
||||||
this.className = className;
|
private String color = "red";
|
||||||
return this;
|
|
||||||
}
|
public Animal className(String className) {
|
||||||
|
this.className = className;
|
||||||
/**
|
return this;
|
||||||
* Get className
|
}
|
||||||
* @return className
|
|
||||||
**/
|
/**
|
||||||
@ApiModelProperty(required = true, value = "")
|
* Get className
|
||||||
public String getClassName() {
|
* @return className
|
||||||
return className;
|
**/
|
||||||
}
|
@ApiModelProperty(required = true, value = "")
|
||||||
|
@NotNull
|
||||||
public void setClassName(String className) {
|
public String getClassName() {
|
||||||
this.className = className;
|
return className;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Animal color(String color) {
|
public void setClassName(String className) {
|
||||||
this.color = color;
|
this.className = className;
|
||||||
return this;
|
}
|
||||||
}
|
|
||||||
|
public Animal color(String color) {
|
||||||
/**
|
this.color = color;
|
||||||
* Get color
|
return this;
|
||||||
* @return color
|
}
|
||||||
**/
|
|
||||||
@ApiModelProperty(value = "")
|
/**
|
||||||
public String getColor() {
|
* Get color
|
||||||
return color;
|
* @return color
|
||||||
}
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
public void setColor(String color) {
|
public String getColor() {
|
||||||
this.color = color;
|
return color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setColor(String color) {
|
||||||
@Override
|
this.color = color;
|
||||||
public boolean equals(java.lang.Object o) {
|
}
|
||||||
if (this == o) {
|
|
||||||
return true;
|
|
||||||
}
|
@Override
|
||||||
if (o == null || getClass() != o.getClass()) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return false;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
Animal animal = (Animal) o;
|
}
|
||||||
return Objects.equals(this.className, animal.className) &&
|
if (o == null || getClass() != o.getClass()) {
|
||||||
Objects.equals(this.color, animal.color);
|
return false;
|
||||||
}
|
}
|
||||||
|
Animal animal = (Animal) o;
|
||||||
@Override
|
return Objects.equals(this.className, animal.className) &&
|
||||||
public int hashCode() {
|
Objects.equals(this.color, animal.color);
|
||||||
return Objects.hash(className, color);
|
}
|
||||||
}
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
@Override
|
return Objects.hash(className, color);
|
||||||
public String toString() {
|
}
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class Animal {\n");
|
|
||||||
|
@Override
|
||||||
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
public String toString() {
|
||||||
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("}");
|
sb.append("class Animal {\n");
|
||||||
return sb.toString();
|
|
||||||
}
|
sb.append(" className: ").append(toIndentedString(className)).append("\n");
|
||||||
|
sb.append(" color: ").append(toIndentedString(color)).append("\n");
|
||||||
/**
|
sb.append("}");
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
return sb.toString();
|
||||||
* (except the first line).
|
}
|
||||||
*/
|
|
||||||
private String toIndentedString(java.lang.Object o) {
|
/**
|
||||||
if (o == null) {
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
return "null";
|
* (except the first line).
|
||||||
}
|
*/
|
||||||
return o.toString().replace("\n", "\n ");
|
private String toIndentedString(java.lang.Object o) {
|
||||||
}
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,64 +1,65 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* AnimalFarm
|
/**
|
||||||
*/
|
* AnimalFarm
|
||||||
|
*/
|
||||||
public class AnimalFarm extends ArrayList<Animal> {
|
|
||||||
|
public class AnimalFarm extends ArrayList<Animal> {
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
return true;
|
}
|
||||||
}
|
return true;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(super.hashCode());
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class AnimalFarm {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append("class AnimalFarm {\n");
|
||||||
sb.append("}");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,96 +1,97 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* ArrayOfArrayOfNumberOnly
|
/**
|
||||||
*/
|
* ArrayOfArrayOfNumberOnly
|
||||||
|
*/
|
||||||
public class ArrayOfArrayOfNumberOnly {
|
|
||||||
@JsonProperty("ArrayArrayNumber")
|
public class ArrayOfArrayOfNumberOnly {
|
||||||
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
@JsonProperty("ArrayArrayNumber")
|
||||||
|
private List<List<BigDecimal>> arrayArrayNumber = new ArrayList<List<BigDecimal>>();
|
||||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
return this;
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
|
||||||
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
public ArrayOfArrayOfNumberOnly addArrayArrayNumberItem(List<BigDecimal> arrayArrayNumberItem) {
|
||||||
return this;
|
this.arrayArrayNumber.add(arrayArrayNumberItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayArrayNumber
|
/**
|
||||||
* @return arrayArrayNumber
|
* Get arrayArrayNumber
|
||||||
**/
|
* @return arrayArrayNumber
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<List<BigDecimal>> getArrayArrayNumber() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayArrayNumber;
|
public List<List<BigDecimal>> getArrayArrayNumber() {
|
||||||
}
|
return arrayArrayNumber;
|
||||||
|
}
|
||||||
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
|
||||||
this.arrayArrayNumber = arrayArrayNumber;
|
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||||
}
|
this.arrayArrayNumber = arrayArrayNumber;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
|
}
|
||||||
return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
|
ArrayOfArrayOfNumberOnly arrayOfArrayOfNumberOnly = (ArrayOfArrayOfNumberOnly) o;
|
||||||
}
|
return Objects.equals(this.arrayArrayNumber, arrayOfArrayOfNumberOnly.arrayArrayNumber);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(arrayArrayNumber);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(arrayArrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ArrayOfArrayOfNumberOnly {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ArrayOfArrayOfNumberOnly {\n");
|
||||||
sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" arrayArrayNumber: ").append(toIndentedString(arrayArrayNumber)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,96 +1,97 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* ArrayOfNumberOnly
|
/**
|
||||||
*/
|
* ArrayOfNumberOnly
|
||||||
|
*/
|
||||||
public class ArrayOfNumberOnly {
|
|
||||||
@JsonProperty("ArrayNumber")
|
public class ArrayOfNumberOnly {
|
||||||
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
@JsonProperty("ArrayNumber")
|
||||||
|
private List<BigDecimal> arrayNumber = new ArrayList<BigDecimal>();
|
||||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
|
||||||
this.arrayNumber = arrayNumber;
|
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
return this;
|
this.arrayNumber = arrayNumber;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
|
||||||
this.arrayNumber.add(arrayNumberItem);
|
public ArrayOfNumberOnly addArrayNumberItem(BigDecimal arrayNumberItem) {
|
||||||
return this;
|
this.arrayNumber.add(arrayNumberItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayNumber
|
/**
|
||||||
* @return arrayNumber
|
* Get arrayNumber
|
||||||
**/
|
* @return arrayNumber
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<BigDecimal> getArrayNumber() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayNumber;
|
public List<BigDecimal> getArrayNumber() {
|
||||||
}
|
return arrayNumber;
|
||||||
|
}
|
||||||
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
|
||||||
this.arrayNumber = arrayNumber;
|
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
||||||
}
|
this.arrayNumber = arrayNumber;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
|
}
|
||||||
return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
|
ArrayOfNumberOnly arrayOfNumberOnly = (ArrayOfNumberOnly) o;
|
||||||
}
|
return Objects.equals(this.arrayNumber, arrayOfNumberOnly.arrayNumber);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(arrayNumber);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(arrayNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ArrayOfNumberOnly {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ArrayOfNumberOnly {\n");
|
||||||
sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" arrayNumber: ").append(toIndentedString(arrayNumber)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,152 +1,153 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import io.swagger.model.ReadOnlyFirst;
|
import io.swagger.model.ReadOnlyFirst;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* ArrayTest
|
/**
|
||||||
*/
|
* ArrayTest
|
||||||
|
*/
|
||||||
public class ArrayTest {
|
|
||||||
@JsonProperty("array_of_string")
|
public class ArrayTest {
|
||||||
private List<String> arrayOfString = new ArrayList<String>();
|
@JsonProperty("array_of_string")
|
||||||
|
private List<String> arrayOfString = new ArrayList<String>();
|
||||||
@JsonProperty("array_array_of_integer")
|
|
||||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
@JsonProperty("array_array_of_integer")
|
||||||
|
private List<List<Long>> arrayArrayOfInteger = new ArrayList<List<Long>>();
|
||||||
@JsonProperty("array_array_of_model")
|
|
||||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
@JsonProperty("array_array_of_model")
|
||||||
|
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<List<ReadOnlyFirst>>();
|
||||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
|
||||||
this.arrayOfString = arrayOfString;
|
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||||
return this;
|
this.arrayOfString = arrayOfString;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
|
||||||
this.arrayOfString.add(arrayOfStringItem);
|
public ArrayTest addArrayOfStringItem(String arrayOfStringItem) {
|
||||||
return this;
|
this.arrayOfString.add(arrayOfStringItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayOfString
|
/**
|
||||||
* @return arrayOfString
|
* Get arrayOfString
|
||||||
**/
|
* @return arrayOfString
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<String> getArrayOfString() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayOfString;
|
public List<String> getArrayOfString() {
|
||||||
}
|
return arrayOfString;
|
||||||
|
}
|
||||||
public void setArrayOfString(List<String> arrayOfString) {
|
|
||||||
this.arrayOfString = arrayOfString;
|
public void setArrayOfString(List<String> arrayOfString) {
|
||||||
}
|
this.arrayOfString = arrayOfString;
|
||||||
|
}
|
||||||
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
return this;
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
|
||||||
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
public ArrayTest addArrayArrayOfIntegerItem(List<Long> arrayArrayOfIntegerItem) {
|
||||||
return this;
|
this.arrayArrayOfInteger.add(arrayArrayOfIntegerItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayArrayOfInteger
|
/**
|
||||||
* @return arrayArrayOfInteger
|
* Get arrayArrayOfInteger
|
||||||
**/
|
* @return arrayArrayOfInteger
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<List<Long>> getArrayArrayOfInteger() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayArrayOfInteger;
|
public List<List<Long>> getArrayArrayOfInteger() {
|
||||||
}
|
return arrayArrayOfInteger;
|
||||||
|
}
|
||||||
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
|
||||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||||
}
|
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||||
|
}
|
||||||
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
return this;
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
|
||||||
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
public ArrayTest addArrayArrayOfModelItem(List<ReadOnlyFirst> arrayArrayOfModelItem) {
|
||||||
return this;
|
this.arrayArrayOfModel.add(arrayArrayOfModelItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayArrayOfModel
|
/**
|
||||||
* @return arrayArrayOfModel
|
* Get arrayArrayOfModel
|
||||||
**/
|
* @return arrayArrayOfModel
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayArrayOfModel;
|
public List<List<ReadOnlyFirst>> getArrayArrayOfModel() {
|
||||||
}
|
return arrayArrayOfModel;
|
||||||
|
}
|
||||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
|
||||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||||
}
|
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ArrayTest arrayTest = (ArrayTest) o;
|
}
|
||||||
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
|
ArrayTest arrayTest = (ArrayTest) o;
|
||||||
Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
|
return Objects.equals(this.arrayOfString, arrayTest.arrayOfString) &&
|
||||||
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
|
Objects.equals(this.arrayArrayOfInteger, arrayTest.arrayArrayOfInteger) &&
|
||||||
}
|
Objects.equals(this.arrayArrayOfModel, arrayTest.arrayArrayOfModel);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(arrayOfString, arrayArrayOfInteger, arrayArrayOfModel);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ArrayTest {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ArrayTest {\n");
|
||||||
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
|
|
||||||
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
|
sb.append(" arrayOfString: ").append(toIndentedString(arrayOfString)).append("\n");
|
||||||
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
|
sb.append(" arrayArrayOfInteger: ").append(toIndentedString(arrayArrayOfInteger)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" arrayArrayOfModel: ").append(toIndentedString(arrayArrayOfModel)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,90 +1,91 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Cat
|
/**
|
||||||
*/
|
* Cat
|
||||||
|
*/
|
||||||
public class Cat extends Animal {
|
|
||||||
@JsonProperty("declawed")
|
public class Cat extends Animal {
|
||||||
private Boolean declawed = null;
|
@JsonProperty("declawed")
|
||||||
|
private Boolean declawed = null;
|
||||||
public Cat declawed(Boolean declawed) {
|
|
||||||
this.declawed = declawed;
|
public Cat declawed(Boolean declawed) {
|
||||||
return this;
|
this.declawed = declawed;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get declawed
|
/**
|
||||||
* @return declawed
|
* Get declawed
|
||||||
**/
|
* @return declawed
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Boolean getDeclawed() {
|
@ApiModelProperty(value = "")
|
||||||
return declawed;
|
public Boolean getDeclawed() {
|
||||||
}
|
return declawed;
|
||||||
|
}
|
||||||
public void setDeclawed(Boolean declawed) {
|
|
||||||
this.declawed = declawed;
|
public void setDeclawed(Boolean declawed) {
|
||||||
}
|
this.declawed = declawed;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
Cat cat = (Cat) o;
|
}
|
||||||
return Objects.equals(this.declawed, cat.declawed) &&
|
Cat cat = (Cat) o;
|
||||||
super.equals(o);
|
return Objects.equals(this.declawed, cat.declawed) &&
|
||||||
}
|
super.equals(o);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(declawed, super.hashCode());
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(declawed, super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class Cat {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append("class Cat {\n");
|
||||||
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append("}");
|
sb.append(" declawed: ").append(toIndentedString(declawed)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,112 +1,112 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@wordnik.com
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Category
|
* Category
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Category {
|
public class Category {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
public Category id(Long id) {
|
public Category id(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Category name(String name) {
|
public Category name(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Category category = (Category) o;
|
Category category = (Category) o;
|
||||||
return Objects.equals(this.id, category.id) &&
|
return Objects.equals(this.id, category.id) &&
|
||||||
Objects.equals(this.name, category.name);
|
Objects.equals(this.name, category.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class Category {\n");
|
sb.append("class Category {\n");
|
||||||
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
* (except the first line).
|
* (except the first line).
|
||||||
*/
|
*/
|
||||||
private String toIndentedString(java.lang.Object o) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,90 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model for testing model with \"_class\" property
|
||||||
|
*/
|
||||||
|
@ApiModel(description = "Model for testing model with \"_class\" property")
|
||||||
|
|
||||||
|
public class ClassModel {
|
||||||
|
@JsonProperty("_class")
|
||||||
|
private String propertyClass = null;
|
||||||
|
|
||||||
|
public ClassModel propertyClass(String propertyClass) {
|
||||||
|
this.propertyClass = propertyClass;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get propertyClass
|
||||||
|
* @return propertyClass
|
||||||
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
public String getPropertyClass() {
|
||||||
|
return propertyClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setPropertyClass(String propertyClass) {
|
||||||
|
this.propertyClass = propertyClass;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
ClassModel classModel = (ClassModel) o;
|
||||||
|
return Objects.equals(this.propertyClass, classModel.propertyClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(propertyClass);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ClassModel {\n");
|
||||||
|
|
||||||
|
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,88 +1,89 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Client
|
/**
|
||||||
*/
|
* Client
|
||||||
|
*/
|
||||||
public class Client {
|
|
||||||
@JsonProperty("client")
|
public class Client {
|
||||||
private String client = null;
|
@JsonProperty("client")
|
||||||
|
private String client = null;
|
||||||
public Client client(String client) {
|
|
||||||
this.client = client;
|
public Client client(String client) {
|
||||||
return this;
|
this.client = client;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get client
|
/**
|
||||||
* @return client
|
* Get client
|
||||||
**/
|
* @return client
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getClient() {
|
@ApiModelProperty(value = "")
|
||||||
return client;
|
public String getClient() {
|
||||||
}
|
return client;
|
||||||
|
}
|
||||||
public void setClient(String client) {
|
|
||||||
this.client = client;
|
public void setClient(String client) {
|
||||||
}
|
this.client = client;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
Client client = (Client) o;
|
}
|
||||||
return Objects.equals(this.client, client.client);
|
Client client = (Client) o;
|
||||||
}
|
return Objects.equals(this.client, client.client);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(client);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(client);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class Client {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Client {\n");
|
||||||
sb.append(" client: ").append(toIndentedString(client)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" client: ").append(toIndentedString(client)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,90 +1,91 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Dog
|
/**
|
||||||
*/
|
* Dog
|
||||||
|
*/
|
||||||
public class Dog extends Animal {
|
|
||||||
@JsonProperty("breed")
|
public class Dog extends Animal {
|
||||||
private String breed = null;
|
@JsonProperty("breed")
|
||||||
|
private String breed = null;
|
||||||
public Dog breed(String breed) {
|
|
||||||
this.breed = breed;
|
public Dog breed(String breed) {
|
||||||
return this;
|
this.breed = breed;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get breed
|
/**
|
||||||
* @return breed
|
* Get breed
|
||||||
**/
|
* @return breed
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getBreed() {
|
@ApiModelProperty(value = "")
|
||||||
return breed;
|
public String getBreed() {
|
||||||
}
|
return breed;
|
||||||
|
}
|
||||||
public void setBreed(String breed) {
|
|
||||||
this.breed = breed;
|
public void setBreed(String breed) {
|
||||||
}
|
this.breed = breed;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
Dog dog = (Dog) o;
|
}
|
||||||
return Objects.equals(this.breed, dog.breed) &&
|
Dog dog = (Dog) o;
|
||||||
super.equals(o);
|
return Objects.equals(this.breed, dog.breed) &&
|
||||||
}
|
super.equals(o);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(breed, super.hashCode());
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(breed, super.hashCode());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class Dog {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
sb.append("class Dog {\n");
|
||||||
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
|
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
|
||||||
sb.append("}");
|
sb.append(" breed: ").append(toIndentedString(breed)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,181 +1,182 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* EnumArrays
|
/**
|
||||||
*/
|
* EnumArrays
|
||||||
|
*/
|
||||||
public class EnumArrays {
|
|
||||||
/**
|
public class EnumArrays {
|
||||||
* Gets or Sets justSymbol
|
/**
|
||||||
*/
|
* Gets or Sets justSymbol
|
||||||
public enum JustSymbolEnum {
|
*/
|
||||||
GREATER_THAN_OR_EQUAL_TO(">="),
|
public enum JustSymbolEnum {
|
||||||
|
GREATER_THAN_OR_EQUAL_TO(">="),
|
||||||
DOLLAR("$");
|
|
||||||
|
DOLLAR("$");
|
||||||
private String value;
|
|
||||||
|
private String value;
|
||||||
JustSymbolEnum(String value) {
|
|
||||||
this.value = value;
|
JustSymbolEnum(String value) {
|
||||||
}
|
this.value = value;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
@JsonValue
|
@Override
|
||||||
public String toString() {
|
@JsonValue
|
||||||
return String.valueOf(value);
|
public String toString() {
|
||||||
}
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
@JsonCreator
|
|
||||||
public static JustSymbolEnum fromValue(String text) {
|
@JsonCreator
|
||||||
for (JustSymbolEnum b : JustSymbolEnum.values()) {
|
public static JustSymbolEnum fromValue(String text) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
for (JustSymbolEnum b : JustSymbolEnum.values()) {
|
||||||
return b;
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
}
|
}
|
||||||
return null;
|
}
|
||||||
}
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@JsonProperty("just_symbol")
|
|
||||||
private JustSymbolEnum justSymbol = null;
|
@JsonProperty("just_symbol")
|
||||||
|
private JustSymbolEnum justSymbol = null;
|
||||||
/**
|
|
||||||
* Gets or Sets arrayEnum
|
/**
|
||||||
*/
|
* Gets or Sets arrayEnum
|
||||||
public enum ArrayEnumEnum {
|
*/
|
||||||
FISH("fish"),
|
public enum ArrayEnumEnum {
|
||||||
|
FISH("fish"),
|
||||||
CRAB("crab");
|
|
||||||
|
CRAB("crab");
|
||||||
private String value;
|
|
||||||
|
private String value;
|
||||||
ArrayEnumEnum(String value) {
|
|
||||||
this.value = value;
|
ArrayEnumEnum(String value) {
|
||||||
}
|
this.value = value;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
@JsonValue
|
@Override
|
||||||
public String toString() {
|
@JsonValue
|
||||||
return String.valueOf(value);
|
public String toString() {
|
||||||
}
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
@JsonCreator
|
|
||||||
public static ArrayEnumEnum fromValue(String text) {
|
@JsonCreator
|
||||||
for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
|
public static ArrayEnumEnum fromValue(String text) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
for (ArrayEnumEnum b : ArrayEnumEnum.values()) {
|
||||||
return b;
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
}
|
}
|
||||||
return null;
|
}
|
||||||
}
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@JsonProperty("array_enum")
|
|
||||||
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
@JsonProperty("array_enum")
|
||||||
|
private List<ArrayEnumEnum> arrayEnum = new ArrayList<ArrayEnumEnum>();
|
||||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
|
||||||
this.justSymbol = justSymbol;
|
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||||
return this;
|
this.justSymbol = justSymbol;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get justSymbol
|
/**
|
||||||
* @return justSymbol
|
* Get justSymbol
|
||||||
**/
|
* @return justSymbol
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public JustSymbolEnum getJustSymbol() {
|
@ApiModelProperty(value = "")
|
||||||
return justSymbol;
|
public JustSymbolEnum getJustSymbol() {
|
||||||
}
|
return justSymbol;
|
||||||
|
}
|
||||||
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
|
||||||
this.justSymbol = justSymbol;
|
public void setJustSymbol(JustSymbolEnum justSymbol) {
|
||||||
}
|
this.justSymbol = justSymbol;
|
||||||
|
}
|
||||||
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
|
||||||
this.arrayEnum = arrayEnum;
|
public EnumArrays arrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
return this;
|
this.arrayEnum = arrayEnum;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
|
||||||
this.arrayEnum.add(arrayEnumItem);
|
public EnumArrays addArrayEnumItem(ArrayEnumEnum arrayEnumItem) {
|
||||||
return this;
|
this.arrayEnum.add(arrayEnumItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get arrayEnum
|
/**
|
||||||
* @return arrayEnum
|
* Get arrayEnum
|
||||||
**/
|
* @return arrayEnum
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public List<ArrayEnumEnum> getArrayEnum() {
|
@ApiModelProperty(value = "")
|
||||||
return arrayEnum;
|
public List<ArrayEnumEnum> getArrayEnum() {
|
||||||
}
|
return arrayEnum;
|
||||||
|
}
|
||||||
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
|
||||||
this.arrayEnum = arrayEnum;
|
public void setArrayEnum(List<ArrayEnumEnum> arrayEnum) {
|
||||||
}
|
this.arrayEnum = arrayEnum;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
EnumArrays enumArrays = (EnumArrays) o;
|
}
|
||||||
return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
|
EnumArrays enumArrays = (EnumArrays) o;
|
||||||
Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
|
return Objects.equals(this.justSymbol, enumArrays.justSymbol) &&
|
||||||
}
|
Objects.equals(this.arrayEnum, enumArrays.arrayEnum);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(justSymbol, arrayEnum);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(justSymbol, arrayEnum);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class EnumArrays {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class EnumArrays {\n");
|
||||||
sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
|
|
||||||
sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n");
|
sb.append(" justSymbol: ").append(toIndentedString(justSymbol)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" arrayEnum: ").append(toIndentedString(arrayEnum)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,53 +1,54 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
/**
|
|
||||||
* Gets or Sets EnumClass
|
/**
|
||||||
*/
|
* Gets or Sets EnumClass
|
||||||
public enum EnumClass {
|
*/
|
||||||
|
public enum EnumClass {
|
||||||
_ABC("_abc"),
|
|
||||||
|
_ABC("_abc"),
|
||||||
_EFG("-efg"),
|
|
||||||
|
_EFG("-efg"),
|
||||||
_XYZ_("(xyz)");
|
|
||||||
|
_XYZ_("(xyz)");
|
||||||
private String value;
|
|
||||||
|
private String value;
|
||||||
EnumClass(String value) {
|
|
||||||
this.value = value;
|
EnumClass(String value) {
|
||||||
}
|
this.value = value;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
return String.valueOf(value);
|
public String toString() {
|
||||||
}
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
@JsonCreator
|
|
||||||
public static EnumClass fromValue(String text) {
|
@JsonCreator
|
||||||
for (EnumClass b : EnumClass.values()) {
|
public static EnumClass fromValue(String text) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
for (EnumClass b : EnumClass.values()) {
|
||||||
return b;
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
}
|
}
|
||||||
return null;
|
}
|
||||||
}
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,228 +1,253 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import io.swagger.model.OuterEnum;
|
||||||
/**
|
import javax.validation.constraints.*;
|
||||||
* EnumTest
|
|
||||||
*/
|
/**
|
||||||
|
* EnumTest
|
||||||
public class EnumTest {
|
*/
|
||||||
/**
|
|
||||||
* Gets or Sets enumString
|
public class EnumTest {
|
||||||
*/
|
/**
|
||||||
public enum EnumStringEnum {
|
* Gets or Sets enumString
|
||||||
UPPER("UPPER"),
|
*/
|
||||||
|
public enum EnumStringEnum {
|
||||||
LOWER("lower");
|
UPPER("UPPER"),
|
||||||
|
|
||||||
private String value;
|
LOWER("lower");
|
||||||
|
|
||||||
EnumStringEnum(String value) {
|
private String value;
|
||||||
this.value = value;
|
|
||||||
}
|
EnumStringEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
@Override
|
}
|
||||||
@JsonValue
|
|
||||||
public String toString() {
|
@Override
|
||||||
return String.valueOf(value);
|
@JsonValue
|
||||||
}
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
@JsonCreator
|
}
|
||||||
public static EnumStringEnum fromValue(String text) {
|
|
||||||
for (EnumStringEnum b : EnumStringEnum.values()) {
|
@JsonCreator
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
public static EnumStringEnum fromValue(String text) {
|
||||||
return b;
|
for (EnumStringEnum b : EnumStringEnum.values()) {
|
||||||
}
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
return null;
|
||||||
|
}
|
||||||
@JsonProperty("enum_string")
|
}
|
||||||
private EnumStringEnum enumString = null;
|
|
||||||
|
@JsonProperty("enum_string")
|
||||||
/**
|
private EnumStringEnum enumString = null;
|
||||||
* Gets or Sets enumInteger
|
|
||||||
*/
|
/**
|
||||||
public enum EnumIntegerEnum {
|
* Gets or Sets enumInteger
|
||||||
NUMBER_1(1),
|
*/
|
||||||
|
public enum EnumIntegerEnum {
|
||||||
NUMBER_MINUS_1(-1);
|
NUMBER_1(1),
|
||||||
|
|
||||||
private Integer value;
|
NUMBER_MINUS_1(-1);
|
||||||
|
|
||||||
EnumIntegerEnum(Integer value) {
|
private Integer value;
|
||||||
this.value = value;
|
|
||||||
}
|
EnumIntegerEnum(Integer value) {
|
||||||
|
this.value = value;
|
||||||
@Override
|
}
|
||||||
@JsonValue
|
|
||||||
public String toString() {
|
@Override
|
||||||
return String.valueOf(value);
|
@JsonValue
|
||||||
}
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
@JsonCreator
|
}
|
||||||
public static EnumIntegerEnum fromValue(String text) {
|
|
||||||
for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
|
@JsonCreator
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
public static EnumIntegerEnum fromValue(String text) {
|
||||||
return b;
|
for (EnumIntegerEnum b : EnumIntegerEnum.values()) {
|
||||||
}
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
return null;
|
||||||
|
}
|
||||||
@JsonProperty("enum_integer")
|
}
|
||||||
private EnumIntegerEnum enumInteger = null;
|
|
||||||
|
@JsonProperty("enum_integer")
|
||||||
/**
|
private EnumIntegerEnum enumInteger = null;
|
||||||
* Gets or Sets enumNumber
|
|
||||||
*/
|
/**
|
||||||
public enum EnumNumberEnum {
|
* Gets or Sets enumNumber
|
||||||
NUMBER_1_DOT_1(1.1),
|
*/
|
||||||
|
public enum EnumNumberEnum {
|
||||||
NUMBER_MINUS_1_DOT_2(-1.2);
|
NUMBER_1_DOT_1(1.1),
|
||||||
|
|
||||||
private Double value;
|
NUMBER_MINUS_1_DOT_2(-1.2);
|
||||||
|
|
||||||
EnumNumberEnum(Double value) {
|
private Double value;
|
||||||
this.value = value;
|
|
||||||
}
|
EnumNumberEnum(Double value) {
|
||||||
|
this.value = value;
|
||||||
@Override
|
}
|
||||||
@JsonValue
|
|
||||||
public String toString() {
|
@Override
|
||||||
return String.valueOf(value);
|
@JsonValue
|
||||||
}
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
@JsonCreator
|
}
|
||||||
public static EnumNumberEnum fromValue(String text) {
|
|
||||||
for (EnumNumberEnum b : EnumNumberEnum.values()) {
|
@JsonCreator
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
public static EnumNumberEnum fromValue(String text) {
|
||||||
return b;
|
for (EnumNumberEnum b : EnumNumberEnum.values()) {
|
||||||
}
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
return null;
|
}
|
||||||
}
|
}
|
||||||
}
|
return null;
|
||||||
|
}
|
||||||
@JsonProperty("enum_number")
|
}
|
||||||
private EnumNumberEnum enumNumber = null;
|
|
||||||
|
@JsonProperty("enum_number")
|
||||||
public EnumTest enumString(EnumStringEnum enumString) {
|
private EnumNumberEnum enumNumber = null;
|
||||||
this.enumString = enumString;
|
|
||||||
return this;
|
@JsonProperty("outerEnum")
|
||||||
}
|
private OuterEnum outerEnum = null;
|
||||||
|
|
||||||
/**
|
public EnumTest enumString(EnumStringEnum enumString) {
|
||||||
* Get enumString
|
this.enumString = enumString;
|
||||||
* @return enumString
|
return this;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
public EnumStringEnum getEnumString() {
|
/**
|
||||||
return enumString;
|
* Get enumString
|
||||||
}
|
* @return enumString
|
||||||
|
**/
|
||||||
public void setEnumString(EnumStringEnum enumString) {
|
@ApiModelProperty(value = "")
|
||||||
this.enumString = enumString;
|
public EnumStringEnum getEnumString() {
|
||||||
}
|
return enumString;
|
||||||
|
}
|
||||||
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
|
||||||
this.enumInteger = enumInteger;
|
public void setEnumString(EnumStringEnum enumString) {
|
||||||
return this;
|
this.enumString = enumString;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public EnumTest enumInteger(EnumIntegerEnum enumInteger) {
|
||||||
* Get enumInteger
|
this.enumInteger = enumInteger;
|
||||||
* @return enumInteger
|
return this;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
public EnumIntegerEnum getEnumInteger() {
|
/**
|
||||||
return enumInteger;
|
* Get enumInteger
|
||||||
}
|
* @return enumInteger
|
||||||
|
**/
|
||||||
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
@ApiModelProperty(value = "")
|
||||||
this.enumInteger = enumInteger;
|
public EnumIntegerEnum getEnumInteger() {
|
||||||
}
|
return enumInteger;
|
||||||
|
}
|
||||||
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
|
||||||
this.enumNumber = enumNumber;
|
public void setEnumInteger(EnumIntegerEnum enumInteger) {
|
||||||
return this;
|
this.enumInteger = enumInteger;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public EnumTest enumNumber(EnumNumberEnum enumNumber) {
|
||||||
* Get enumNumber
|
this.enumNumber = enumNumber;
|
||||||
* @return enumNumber
|
return this;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
public EnumNumberEnum getEnumNumber() {
|
/**
|
||||||
return enumNumber;
|
* Get enumNumber
|
||||||
}
|
* @return enumNumber
|
||||||
|
**/
|
||||||
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
@ApiModelProperty(value = "")
|
||||||
this.enumNumber = enumNumber;
|
public EnumNumberEnum getEnumNumber() {
|
||||||
}
|
return enumNumber;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
public void setEnumNumber(EnumNumberEnum enumNumber) {
|
||||||
public boolean equals(java.lang.Object o) {
|
this.enumNumber = enumNumber;
|
||||||
if (this == o) {
|
}
|
||||||
return true;
|
|
||||||
}
|
public EnumTest outerEnum(OuterEnum outerEnum) {
|
||||||
if (o == null || getClass() != o.getClass()) {
|
this.outerEnum = outerEnum;
|
||||||
return false;
|
return this;
|
||||||
}
|
}
|
||||||
EnumTest enumTest = (EnumTest) o;
|
|
||||||
return Objects.equals(this.enumString, enumTest.enumString) &&
|
/**
|
||||||
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
* Get outerEnum
|
||||||
Objects.equals(this.enumNumber, enumTest.enumNumber);
|
* @return outerEnum
|
||||||
}
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
@Override
|
public OuterEnum getOuterEnum() {
|
||||||
public int hashCode() {
|
return outerEnum;
|
||||||
return Objects.hash(enumString, enumInteger, enumNumber);
|
}
|
||||||
}
|
|
||||||
|
public void setOuterEnum(OuterEnum outerEnum) {
|
||||||
|
this.outerEnum = outerEnum;
|
||||||
@Override
|
}
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
|
||||||
sb.append("class EnumTest {\n");
|
@Override
|
||||||
|
public boolean equals(java.lang.Object o) {
|
||||||
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
|
if (this == o) {
|
||||||
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
return true;
|
||||||
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
}
|
||||||
sb.append("}");
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return sb.toString();
|
return false;
|
||||||
}
|
}
|
||||||
|
EnumTest enumTest = (EnumTest) o;
|
||||||
/**
|
return Objects.equals(this.enumString, enumTest.enumString) &&
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
Objects.equals(this.enumInteger, enumTest.enumInteger) &&
|
||||||
* (except the first line).
|
Objects.equals(this.enumNumber, enumTest.enumNumber) &&
|
||||||
*/
|
Objects.equals(this.outerEnum, enumTest.outerEnum);
|
||||||
private String toIndentedString(java.lang.Object o) {
|
}
|
||||||
if (o == null) {
|
|
||||||
return "null";
|
@Override
|
||||||
}
|
public int hashCode() {
|
||||||
return o.toString().replace("\n", "\n ");
|
return Objects.hash(enumString, enumInteger, enumNumber, outerEnum);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class EnumTest {\n");
|
||||||
|
|
||||||
|
sb.append(" enumString: ").append(toIndentedString(enumString)).append("\n");
|
||||||
|
sb.append(" enumInteger: ").append(toIndentedString(enumInteger)).append("\n");
|
||||||
|
sb.append(" enumNumber: ").append(toIndentedString(enumNumber)).append("\n");
|
||||||
|
sb.append(" outerEnum: ").append(toIndentedString(outerEnum)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,376 +1,393 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* FormatTest
|
/**
|
||||||
*/
|
* FormatTest
|
||||||
|
*/
|
||||||
public class FormatTest {
|
|
||||||
@JsonProperty("integer")
|
public class FormatTest {
|
||||||
private Integer integer = null;
|
@JsonProperty("integer")
|
||||||
|
private Integer integer = null;
|
||||||
@JsonProperty("int32")
|
|
||||||
private Integer int32 = null;
|
@JsonProperty("int32")
|
||||||
|
private Integer int32 = null;
|
||||||
@JsonProperty("int64")
|
|
||||||
private Long int64 = null;
|
@JsonProperty("int64")
|
||||||
|
private Long int64 = null;
|
||||||
@JsonProperty("number")
|
|
||||||
private BigDecimal number = null;
|
@JsonProperty("number")
|
||||||
|
private BigDecimal number = null;
|
||||||
@JsonProperty("float")
|
|
||||||
private Float _float = null;
|
@JsonProperty("float")
|
||||||
|
private Float _float = null;
|
||||||
@JsonProperty("double")
|
|
||||||
private Double _double = null;
|
@JsonProperty("double")
|
||||||
|
private Double _double = null;
|
||||||
@JsonProperty("string")
|
|
||||||
private String string = null;
|
@JsonProperty("string")
|
||||||
|
private String string = null;
|
||||||
@JsonProperty("byte")
|
|
||||||
private byte[] _byte = null;
|
@JsonProperty("byte")
|
||||||
|
private byte[] _byte = null;
|
||||||
@JsonProperty("binary")
|
|
||||||
private byte[] binary = null;
|
@JsonProperty("binary")
|
||||||
|
private byte[] binary = null;
|
||||||
@JsonProperty("date")
|
|
||||||
private Date date = null;
|
@JsonProperty("date")
|
||||||
|
private Date date = null;
|
||||||
@JsonProperty("dateTime")
|
|
||||||
private Date dateTime = null;
|
@JsonProperty("dateTime")
|
||||||
|
private Date dateTime = null;
|
||||||
@JsonProperty("uuid")
|
|
||||||
private String uuid = null;
|
@JsonProperty("uuid")
|
||||||
|
private String uuid = null;
|
||||||
@JsonProperty("password")
|
|
||||||
private String password = null;
|
@JsonProperty("password")
|
||||||
|
private String password = null;
|
||||||
public FormatTest integer(Integer integer) {
|
|
||||||
this.integer = integer;
|
public FormatTest integer(Integer integer) {
|
||||||
return this;
|
this.integer = integer;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get integer
|
/**
|
||||||
* minimum: 10.0
|
* Get integer
|
||||||
* maximum: 100.0
|
* minimum: 10
|
||||||
* @return integer
|
* maximum: 100
|
||||||
**/
|
* @return integer
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Integer getInteger() {
|
@ApiModelProperty(value = "")
|
||||||
return integer;
|
// @Min(10)
|
||||||
}
|
// @Max(100)
|
||||||
|
public Integer getInteger() {
|
||||||
public void setInteger(Integer integer) {
|
return integer;
|
||||||
this.integer = integer;
|
}
|
||||||
}
|
|
||||||
|
public void setInteger(Integer integer) {
|
||||||
public FormatTest int32(Integer int32) {
|
this.integer = integer;
|
||||||
this.int32 = int32;
|
}
|
||||||
return this;
|
|
||||||
}
|
public FormatTest int32(Integer int32) {
|
||||||
|
this.int32 = int32;
|
||||||
/**
|
return this;
|
||||||
* Get int32
|
}
|
||||||
* minimum: 20.0
|
|
||||||
* maximum: 200.0
|
/**
|
||||||
* @return int32
|
* Get int32
|
||||||
**/
|
* minimum: 20
|
||||||
@ApiModelProperty(value = "")
|
* maximum: 200
|
||||||
public Integer getInt32() {
|
* @return int32
|
||||||
return int32;
|
**/
|
||||||
}
|
@ApiModelProperty(value = "")
|
||||||
|
// @Min(20)
|
||||||
public void setInt32(Integer int32) {
|
// @Max(200)
|
||||||
this.int32 = int32;
|
public Integer getInt32() {
|
||||||
}
|
return int32;
|
||||||
|
}
|
||||||
public FormatTest int64(Long int64) {
|
|
||||||
this.int64 = int64;
|
public void setInt32(Integer int32) {
|
||||||
return this;
|
this.int32 = int32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public FormatTest int64(Long int64) {
|
||||||
* Get int64
|
this.int64 = int64;
|
||||||
* @return int64
|
return this;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
public Long getInt64() {
|
/**
|
||||||
return int64;
|
* Get int64
|
||||||
}
|
* @return int64
|
||||||
|
**/
|
||||||
public void setInt64(Long int64) {
|
@ApiModelProperty(value = "")
|
||||||
this.int64 = int64;
|
public Long getInt64() {
|
||||||
}
|
return int64;
|
||||||
|
}
|
||||||
public FormatTest number(BigDecimal number) {
|
|
||||||
this.number = number;
|
public void setInt64(Long int64) {
|
||||||
return this;
|
this.int64 = int64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
public FormatTest number(BigDecimal number) {
|
||||||
* Get number
|
this.number = number;
|
||||||
* minimum: 32.1
|
return this;
|
||||||
* maximum: 543.2
|
}
|
||||||
* @return number
|
|
||||||
**/
|
/**
|
||||||
@ApiModelProperty(required = true, value = "")
|
* Get number
|
||||||
public BigDecimal getNumber() {
|
* minimum: 32.1
|
||||||
return number;
|
* maximum: 543.2
|
||||||
}
|
* @return number
|
||||||
|
**/
|
||||||
public void setNumber(BigDecimal number) {
|
@ApiModelProperty(required = true, value = "")
|
||||||
this.number = number;
|
@NotNull
|
||||||
}
|
// @Min(32.1)
|
||||||
|
// @Max(543.2)
|
||||||
public FormatTest _float(Float _float) {
|
public BigDecimal getNumber() {
|
||||||
this._float = _float;
|
return number;
|
||||||
return this;
|
}
|
||||||
}
|
|
||||||
|
public void setNumber(BigDecimal number) {
|
||||||
/**
|
this.number = number;
|
||||||
* Get _float
|
}
|
||||||
* minimum: 54.3
|
|
||||||
* maximum: 987.6
|
public FormatTest _float(Float _float) {
|
||||||
* @return _float
|
this._float = _float;
|
||||||
**/
|
return this;
|
||||||
@ApiModelProperty(value = "")
|
}
|
||||||
public Float getFloat() {
|
|
||||||
return _float;
|
/**
|
||||||
}
|
* Get _float
|
||||||
|
* minimum: 54.3
|
||||||
public void setFloat(Float _float) {
|
* maximum: 987.6
|
||||||
this._float = _float;
|
* @return _float
|
||||||
}
|
**/
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
public FormatTest _double(Double _double) {
|
// @Min(54.3)
|
||||||
this._double = _double;
|
// @Max(987.6)
|
||||||
return this;
|
public Float getFloat() {
|
||||||
}
|
return _float;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get _double
|
public void setFloat(Float _float) {
|
||||||
* minimum: 67.8
|
this._float = _float;
|
||||||
* maximum: 123.4
|
}
|
||||||
* @return _double
|
|
||||||
**/
|
public FormatTest _double(Double _double) {
|
||||||
@ApiModelProperty(value = "")
|
this._double = _double;
|
||||||
public Double getDouble() {
|
return this;
|
||||||
return _double;
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
public void setDouble(Double _double) {
|
* Get _double
|
||||||
this._double = _double;
|
* minimum: 67.8
|
||||||
}
|
* maximum: 123.4
|
||||||
|
* @return _double
|
||||||
public FormatTest string(String string) {
|
**/
|
||||||
this.string = string;
|
@ApiModelProperty(value = "")
|
||||||
return this;
|
// @Min(67.8)
|
||||||
}
|
// @Max(123.4)
|
||||||
|
public Double getDouble() {
|
||||||
/**
|
return _double;
|
||||||
* Get string
|
}
|
||||||
* @return string
|
|
||||||
**/
|
public void setDouble(Double _double) {
|
||||||
@ApiModelProperty(value = "")
|
this._double = _double;
|
||||||
public String getString() {
|
}
|
||||||
return string;
|
|
||||||
}
|
public FormatTest string(String string) {
|
||||||
|
this.string = string;
|
||||||
public void setString(String string) {
|
return this;
|
||||||
this.string = string;
|
}
|
||||||
}
|
|
||||||
|
/**
|
||||||
public FormatTest _byte(byte[] _byte) {
|
* Get string
|
||||||
this._byte = _byte;
|
* @return string
|
||||||
return this;
|
**/
|
||||||
}
|
@ApiModelProperty(value = "")
|
||||||
|
@Pattern(regexp="/[a-z]/i")
|
||||||
/**
|
public String getString() {
|
||||||
* Get _byte
|
return string;
|
||||||
* @return _byte
|
}
|
||||||
**/
|
|
||||||
@ApiModelProperty(required = true, value = "")
|
public void setString(String string) {
|
||||||
public byte[] getByte() {
|
this.string = string;
|
||||||
return _byte;
|
}
|
||||||
}
|
|
||||||
|
public FormatTest _byte(byte[] _byte) {
|
||||||
public void setByte(byte[] _byte) {
|
this._byte = _byte;
|
||||||
this._byte = _byte;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public FormatTest binary(byte[] binary) {
|
/**
|
||||||
this.binary = binary;
|
* Get _byte
|
||||||
return this;
|
* @return _byte
|
||||||
}
|
**/
|
||||||
|
@ApiModelProperty(required = true, value = "")
|
||||||
/**
|
@NotNull
|
||||||
* Get binary
|
public byte[] getByte() {
|
||||||
* @return binary
|
return _byte;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(value = "")
|
|
||||||
public byte[] getBinary() {
|
public void setByte(byte[] _byte) {
|
||||||
return binary;
|
this._byte = _byte;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBinary(byte[] binary) {
|
public FormatTest binary(byte[] binary) {
|
||||||
this.binary = binary;
|
this.binary = binary;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public FormatTest date(Date date) {
|
|
||||||
this.date = date;
|
/**
|
||||||
return this;
|
* Get binary
|
||||||
}
|
* @return binary
|
||||||
|
**/
|
||||||
/**
|
@ApiModelProperty(value = "")
|
||||||
* Get date
|
public byte[] getBinary() {
|
||||||
* @return date
|
return binary;
|
||||||
**/
|
}
|
||||||
@ApiModelProperty(required = true, value = "")
|
|
||||||
public Date getDate() {
|
public void setBinary(byte[] binary) {
|
||||||
return date;
|
this.binary = binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDate(Date date) {
|
public FormatTest date(Date date) {
|
||||||
this.date = date;
|
this.date = date;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public FormatTest dateTime(Date dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
/**
|
||||||
return this;
|
* Get date
|
||||||
}
|
* @return date
|
||||||
|
**/
|
||||||
/**
|
@ApiModelProperty(required = true, value = "")
|
||||||
* Get dateTime
|
@NotNull
|
||||||
* @return dateTime
|
public Date getDate() {
|
||||||
**/
|
return date;
|
||||||
@ApiModelProperty(value = "")
|
}
|
||||||
public Date getDateTime() {
|
|
||||||
return dateTime;
|
public void setDate(Date date) {
|
||||||
}
|
this.date = date;
|
||||||
|
}
|
||||||
public void setDateTime(Date dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
public FormatTest dateTime(Date dateTime) {
|
||||||
}
|
this.dateTime = dateTime;
|
||||||
|
return this;
|
||||||
public FormatTest uuid(String uuid) {
|
}
|
||||||
this.uuid = uuid;
|
|
||||||
return this;
|
/**
|
||||||
}
|
* Get dateTime
|
||||||
|
* @return dateTime
|
||||||
/**
|
**/
|
||||||
* Get uuid
|
@ApiModelProperty(value = "")
|
||||||
* @return uuid
|
public Date getDateTime() {
|
||||||
**/
|
return dateTime;
|
||||||
@ApiModelProperty(value = "")
|
}
|
||||||
public String getUuid() {
|
|
||||||
return uuid;
|
public void setDateTime(Date dateTime) {
|
||||||
}
|
this.dateTime = dateTime;
|
||||||
|
}
|
||||||
public void setUuid(String uuid) {
|
|
||||||
this.uuid = uuid;
|
public FormatTest uuid(String uuid) {
|
||||||
}
|
this.uuid = uuid;
|
||||||
|
return this;
|
||||||
public FormatTest password(String password) {
|
}
|
||||||
this.password = password;
|
|
||||||
return this;
|
/**
|
||||||
}
|
* Get uuid
|
||||||
|
* @return uuid
|
||||||
/**
|
**/
|
||||||
* Get password
|
@ApiModelProperty(value = "")
|
||||||
* @return password
|
public String getUuid() {
|
||||||
**/
|
return uuid;
|
||||||
@ApiModelProperty(required = true, value = "")
|
}
|
||||||
public String getPassword() {
|
|
||||||
return password;
|
public void setUuid(String uuid) {
|
||||||
}
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
public void setPassword(String password) {
|
|
||||||
this.password = password;
|
public FormatTest password(String password) {
|
||||||
}
|
this.password = password;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
/**
|
||||||
if (this == o) {
|
* Get password
|
||||||
return true;
|
* @return password
|
||||||
}
|
**/
|
||||||
if (o == null || getClass() != o.getClass()) {
|
@ApiModelProperty(required = true, value = "")
|
||||||
return false;
|
@NotNull
|
||||||
}
|
@Size(min=10,max=64)
|
||||||
FormatTest formatTest = (FormatTest) o;
|
public String getPassword() {
|
||||||
return Objects.equals(this.integer, formatTest.integer) &&
|
return password;
|
||||||
Objects.equals(this.int32, formatTest.int32) &&
|
}
|
||||||
Objects.equals(this.int64, formatTest.int64) &&
|
|
||||||
Objects.equals(this.number, formatTest.number) &&
|
public void setPassword(String password) {
|
||||||
Objects.equals(this._float, formatTest._float) &&
|
this.password = password;
|
||||||
Objects.equals(this._double, formatTest._double) &&
|
}
|
||||||
Objects.equals(this.string, formatTest.string) &&
|
|
||||||
Objects.equals(this._byte, formatTest._byte) &&
|
|
||||||
Objects.equals(this.binary, formatTest.binary) &&
|
@Override
|
||||||
Objects.equals(this.date, formatTest.date) &&
|
public boolean equals(java.lang.Object o) {
|
||||||
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
if (this == o) {
|
||||||
Objects.equals(this.uuid, formatTest.uuid) &&
|
return true;
|
||||||
Objects.equals(this.password, formatTest.password);
|
}
|
||||||
}
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
@Override
|
}
|
||||||
public int hashCode() {
|
FormatTest formatTest = (FormatTest) o;
|
||||||
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
return Objects.equals(this.integer, formatTest.integer) &&
|
||||||
}
|
Objects.equals(this.int32, formatTest.int32) &&
|
||||||
|
Objects.equals(this.int64, formatTest.int64) &&
|
||||||
|
Objects.equals(this.number, formatTest.number) &&
|
||||||
@Override
|
Objects.equals(this._float, formatTest._float) &&
|
||||||
public String toString() {
|
Objects.equals(this._double, formatTest._double) &&
|
||||||
StringBuilder sb = new StringBuilder();
|
Objects.equals(this.string, formatTest.string) &&
|
||||||
sb.append("class FormatTest {\n");
|
Objects.equals(this._byte, formatTest._byte) &&
|
||||||
|
Objects.equals(this.binary, formatTest.binary) &&
|
||||||
sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
|
Objects.equals(this.date, formatTest.date) &&
|
||||||
sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
|
Objects.equals(this.dateTime, formatTest.dateTime) &&
|
||||||
sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
|
Objects.equals(this.uuid, formatTest.uuid) &&
|
||||||
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
Objects.equals(this.password, formatTest.password);
|
||||||
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
}
|
||||||
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
|
||||||
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
@Override
|
||||||
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
public int hashCode() {
|
||||||
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
return Objects.hash(integer, int32, int64, number, _float, _double, string, _byte, binary, date, dateTime, uuid, password);
|
||||||
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
}
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
@Override
|
||||||
sb.append("}");
|
public String toString() {
|
||||||
return sb.toString();
|
StringBuilder sb = new StringBuilder();
|
||||||
}
|
sb.append("class FormatTest {\n");
|
||||||
|
|
||||||
/**
|
sb.append(" integer: ").append(toIndentedString(integer)).append("\n");
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
sb.append(" int32: ").append(toIndentedString(int32)).append("\n");
|
||||||
* (except the first line).
|
sb.append(" int64: ").append(toIndentedString(int64)).append("\n");
|
||||||
*/
|
sb.append(" number: ").append(toIndentedString(number)).append("\n");
|
||||||
private String toIndentedString(java.lang.Object o) {
|
sb.append(" _float: ").append(toIndentedString(_float)).append("\n");
|
||||||
if (o == null) {
|
sb.append(" _double: ").append(toIndentedString(_double)).append("\n");
|
||||||
return "null";
|
sb.append(" string: ").append(toIndentedString(string)).append("\n");
|
||||||
}
|
sb.append(" _byte: ").append(toIndentedString(_byte)).append("\n");
|
||||||
return o.toString().replace("\n", "\n ");
|
sb.append(" binary: ").append(toIndentedString(binary)).append("\n");
|
||||||
}
|
sb.append(" date: ").append(toIndentedString(date)).append("\n");
|
||||||
}
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(java.lang.Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,93 +1,94 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* HasOnlyReadOnly
|
/**
|
||||||
*/
|
* HasOnlyReadOnly
|
||||||
|
*/
|
||||||
public class HasOnlyReadOnly {
|
|
||||||
@JsonProperty("bar")
|
public class HasOnlyReadOnly {
|
||||||
private String bar = null;
|
@JsonProperty("bar")
|
||||||
|
private String bar = null;
|
||||||
@JsonProperty("foo")
|
|
||||||
private String foo = null;
|
@JsonProperty("foo")
|
||||||
|
private String foo = null;
|
||||||
/**
|
|
||||||
* Get bar
|
/**
|
||||||
* @return bar
|
* Get bar
|
||||||
**/
|
* @return bar
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getBar() {
|
@ApiModelProperty(value = "")
|
||||||
return bar;
|
public String getBar() {
|
||||||
}
|
return bar;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get foo
|
/**
|
||||||
* @return foo
|
* Get foo
|
||||||
**/
|
* @return foo
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getFoo() {
|
@ApiModelProperty(value = "")
|
||||||
return foo;
|
public String getFoo() {
|
||||||
}
|
return foo;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
|
}
|
||||||
return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
|
HasOnlyReadOnly hasOnlyReadOnly = (HasOnlyReadOnly) o;
|
||||||
Objects.equals(this.foo, hasOnlyReadOnly.foo);
|
return Objects.equals(this.bar, hasOnlyReadOnly.bar) &&
|
||||||
}
|
Objects.equals(this.foo, hasOnlyReadOnly.foo);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(bar, foo);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(bar, foo);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class HasOnlyReadOnly {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class HasOnlyReadOnly {\n");
|
||||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
|
||||||
sb.append(" foo: ").append(toIndentedString(foo)).append("\n");
|
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" foo: ").append(toIndentedString(foo)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,156 +1,157 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* MapTest
|
/**
|
||||||
*/
|
* MapTest
|
||||||
|
*/
|
||||||
public class MapTest {
|
|
||||||
@JsonProperty("map_map_of_string")
|
public class MapTest {
|
||||||
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
@JsonProperty("map_map_of_string")
|
||||||
|
private Map<String, Map<String, String>> mapMapOfString = new HashMap<String, Map<String, String>>();
|
||||||
/**
|
|
||||||
* Gets or Sets inner
|
/**
|
||||||
*/
|
* Gets or Sets inner
|
||||||
public enum InnerEnum {
|
*/
|
||||||
UPPER("UPPER"),
|
public enum InnerEnum {
|
||||||
|
UPPER("UPPER"),
|
||||||
LOWER("lower");
|
|
||||||
|
LOWER("lower");
|
||||||
private String value;
|
|
||||||
|
private String value;
|
||||||
InnerEnum(String value) {
|
|
||||||
this.value = value;
|
InnerEnum(String value) {
|
||||||
}
|
this.value = value;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
@JsonValue
|
@Override
|
||||||
public String toString() {
|
@JsonValue
|
||||||
return String.valueOf(value);
|
public String toString() {
|
||||||
}
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
@JsonCreator
|
|
||||||
public static InnerEnum fromValue(String text) {
|
@JsonCreator
|
||||||
for (InnerEnum b : InnerEnum.values()) {
|
public static InnerEnum fromValue(String text) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
for (InnerEnum b : InnerEnum.values()) {
|
||||||
return b;
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
}
|
return b;
|
||||||
}
|
}
|
||||||
return null;
|
}
|
||||||
}
|
return null;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
@JsonProperty("map_of_enum_string")
|
|
||||||
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
@JsonProperty("map_of_enum_string")
|
||||||
|
private Map<String, InnerEnum> mapOfEnumString = new HashMap<String, InnerEnum>();
|
||||||
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
|
||||||
this.mapMapOfString = mapMapOfString;
|
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
return this;
|
this.mapMapOfString = mapMapOfString;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
|
||||||
this.mapMapOfString.put(key, mapMapOfStringItem);
|
public MapTest putMapMapOfStringItem(String key, Map<String, String> mapMapOfStringItem) {
|
||||||
return this;
|
this.mapMapOfString.put(key, mapMapOfStringItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get mapMapOfString
|
/**
|
||||||
* @return mapMapOfString
|
* Get mapMapOfString
|
||||||
**/
|
* @return mapMapOfString
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Map<String, Map<String, String>> getMapMapOfString() {
|
@ApiModelProperty(value = "")
|
||||||
return mapMapOfString;
|
public Map<String, Map<String, String>> getMapMapOfString() {
|
||||||
}
|
return mapMapOfString;
|
||||||
|
}
|
||||||
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
|
||||||
this.mapMapOfString = mapMapOfString;
|
public void setMapMapOfString(Map<String, Map<String, String>> mapMapOfString) {
|
||||||
}
|
this.mapMapOfString = mapMapOfString;
|
||||||
|
}
|
||||||
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
public MapTest mapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
return this;
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
|
||||||
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
public MapTest putMapOfEnumStringItem(String key, InnerEnum mapOfEnumStringItem) {
|
||||||
return this;
|
this.mapOfEnumString.put(key, mapOfEnumStringItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get mapOfEnumString
|
/**
|
||||||
* @return mapOfEnumString
|
* Get mapOfEnumString
|
||||||
**/
|
* @return mapOfEnumString
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Map<String, InnerEnum> getMapOfEnumString() {
|
@ApiModelProperty(value = "")
|
||||||
return mapOfEnumString;
|
public Map<String, InnerEnum> getMapOfEnumString() {
|
||||||
}
|
return mapOfEnumString;
|
||||||
|
}
|
||||||
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
|
||||||
this.mapOfEnumString = mapOfEnumString;
|
public void setMapOfEnumString(Map<String, InnerEnum> mapOfEnumString) {
|
||||||
}
|
this.mapOfEnumString = mapOfEnumString;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
MapTest mapTest = (MapTest) o;
|
}
|
||||||
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
MapTest mapTest = (MapTest) o;
|
||||||
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
return Objects.equals(this.mapMapOfString, mapTest.mapMapOfString) &&
|
||||||
}
|
Objects.equals(this.mapOfEnumString, mapTest.mapOfEnumString);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(mapMapOfString, mapOfEnumString);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(mapMapOfString, mapOfEnumString);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class MapTest {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class MapTest {\n");
|
||||||
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
|
||||||
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
sb.append(" mapMapOfString: ").append(toIndentedString(mapMapOfString)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" mapOfEnumString: ").append(toIndentedString(mapOfEnumString)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,144 +1,145 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import io.swagger.model.Animal;
|
import io.swagger.model.Animal;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* MixedPropertiesAndAdditionalPropertiesClass
|
/**
|
||||||
*/
|
* MixedPropertiesAndAdditionalPropertiesClass
|
||||||
|
*/
|
||||||
public class MixedPropertiesAndAdditionalPropertiesClass {
|
|
||||||
@JsonProperty("uuid")
|
public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||||
private String uuid = null;
|
@JsonProperty("uuid")
|
||||||
|
private String uuid = null;
|
||||||
@JsonProperty("dateTime")
|
|
||||||
private Date dateTime = null;
|
@JsonProperty("dateTime")
|
||||||
|
private Date dateTime = null;
|
||||||
@JsonProperty("map")
|
|
||||||
private Map<String, Animal> map = new HashMap<String, Animal>();
|
@JsonProperty("map")
|
||||||
|
private Map<String, Animal> map = new HashMap<String, Animal>();
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) {
|
|
||||||
this.uuid = uuid;
|
public MixedPropertiesAndAdditionalPropertiesClass uuid(String uuid) {
|
||||||
return this;
|
this.uuid = uuid;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get uuid
|
/**
|
||||||
* @return uuid
|
* Get uuid
|
||||||
**/
|
* @return uuid
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getUuid() {
|
@ApiModelProperty(value = "")
|
||||||
return uuid;
|
public String getUuid() {
|
||||||
}
|
return uuid;
|
||||||
|
}
|
||||||
public void setUuid(String uuid) {
|
|
||||||
this.uuid = uuid;
|
public void setUuid(String uuid) {
|
||||||
}
|
this.uuid = uuid;
|
||||||
|
}
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
public MixedPropertiesAndAdditionalPropertiesClass dateTime(Date dateTime) {
|
||||||
return this;
|
this.dateTime = dateTime;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get dateTime
|
/**
|
||||||
* @return dateTime
|
* Get dateTime
|
||||||
**/
|
* @return dateTime
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Date getDateTime() {
|
@ApiModelProperty(value = "")
|
||||||
return dateTime;
|
public Date getDateTime() {
|
||||||
}
|
return dateTime;
|
||||||
|
}
|
||||||
public void setDateTime(Date dateTime) {
|
|
||||||
this.dateTime = dateTime;
|
public void setDateTime(Date dateTime) {
|
||||||
}
|
this.dateTime = dateTime;
|
||||||
|
}
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
|
||||||
this.map = map;
|
public MixedPropertiesAndAdditionalPropertiesClass map(Map<String, Animal> map) {
|
||||||
return this;
|
this.map = map;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
|
||||||
this.map.put(key, mapItem);
|
public MixedPropertiesAndAdditionalPropertiesClass putMapItem(String key, Animal mapItem) {
|
||||||
return this;
|
this.map.put(key, mapItem);
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get map
|
/**
|
||||||
* @return map
|
* Get map
|
||||||
**/
|
* @return map
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Map<String, Animal> getMap() {
|
@ApiModelProperty(value = "")
|
||||||
return map;
|
public Map<String, Animal> getMap() {
|
||||||
}
|
return map;
|
||||||
|
}
|
||||||
public void setMap(Map<String, Animal> map) {
|
|
||||||
this.map = map;
|
public void setMap(Map<String, Animal> map) {
|
||||||
}
|
this.map = map;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
|
}
|
||||||
return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
|
MixedPropertiesAndAdditionalPropertiesClass mixedPropertiesAndAdditionalPropertiesClass = (MixedPropertiesAndAdditionalPropertiesClass) o;
|
||||||
Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
|
return Objects.equals(this.uuid, mixedPropertiesAndAdditionalPropertiesClass.uuid) &&
|
||||||
Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
|
Objects.equals(this.dateTime, mixedPropertiesAndAdditionalPropertiesClass.dateTime) &&
|
||||||
}
|
Objects.equals(this.map, mixedPropertiesAndAdditionalPropertiesClass.map);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(uuid, dateTime, map);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(uuid, dateTime, map);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class MixedPropertiesAndAdditionalPropertiesClass {\n");
|
||||||
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
|
||||||
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n");
|
||||||
sb.append(" map: ").append(toIndentedString(map)).append("\n");
|
sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" map: ").append(toIndentedString(map)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,112 +1,113 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Model for testing model name starting with number
|
/**
|
||||||
*/
|
* Model for testing model name starting with number
|
||||||
@ApiModel(description = "Model for testing model name starting with number")
|
*/
|
||||||
|
@ApiModel(description = "Model for testing model name starting with number")
|
||||||
public class Model200Response {
|
|
||||||
@JsonProperty("name")
|
public class Model200Response {
|
||||||
private Integer name = null;
|
@JsonProperty("name")
|
||||||
|
private Integer name = null;
|
||||||
@JsonProperty("class")
|
|
||||||
private String propertyClass = null;
|
@JsonProperty("class")
|
||||||
|
private String propertyClass = null;
|
||||||
public Model200Response name(Integer name) {
|
|
||||||
this.name = name;
|
public Model200Response name(Integer name) {
|
||||||
return this;
|
this.name = name;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get name
|
/**
|
||||||
* @return name
|
* Get name
|
||||||
**/
|
* @return name
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Integer getName() {
|
@ApiModelProperty(value = "")
|
||||||
return name;
|
public Integer getName() {
|
||||||
}
|
return name;
|
||||||
|
}
|
||||||
public void setName(Integer name) {
|
|
||||||
this.name = name;
|
public void setName(Integer name) {
|
||||||
}
|
this.name = name;
|
||||||
|
}
|
||||||
public Model200Response propertyClass(String propertyClass) {
|
|
||||||
this.propertyClass = propertyClass;
|
public Model200Response propertyClass(String propertyClass) {
|
||||||
return this;
|
this.propertyClass = propertyClass;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get propertyClass
|
/**
|
||||||
* @return propertyClass
|
* Get propertyClass
|
||||||
**/
|
* @return propertyClass
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getPropertyClass() {
|
@ApiModelProperty(value = "")
|
||||||
return propertyClass;
|
public String getPropertyClass() {
|
||||||
}
|
return propertyClass;
|
||||||
|
}
|
||||||
public void setPropertyClass(String propertyClass) {
|
|
||||||
this.propertyClass = propertyClass;
|
public void setPropertyClass(String propertyClass) {
|
||||||
}
|
this.propertyClass = propertyClass;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
Model200Response _200Response = (Model200Response) o;
|
}
|
||||||
return Objects.equals(this.name, _200Response.name) &&
|
Model200Response _200Response = (Model200Response) o;
|
||||||
Objects.equals(this.propertyClass, _200Response.propertyClass);
|
return Objects.equals(this.name, _200Response.name) &&
|
||||||
}
|
Objects.equals(this.propertyClass, _200Response.propertyClass);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(name, propertyClass);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(name, propertyClass);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class Model200Response {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class Model200Response {\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
|
||||||
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,134 +1,135 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* ModelApiResponse
|
/**
|
||||||
*/
|
* ModelApiResponse
|
||||||
|
*/
|
||||||
public class ModelApiResponse {
|
|
||||||
@JsonProperty("code")
|
public class ModelApiResponse {
|
||||||
private Integer code = null;
|
@JsonProperty("code")
|
||||||
|
private Integer code = null;
|
||||||
@JsonProperty("type")
|
|
||||||
private String type = null;
|
@JsonProperty("type")
|
||||||
|
private String type = null;
|
||||||
@JsonProperty("message")
|
|
||||||
private String message = null;
|
@JsonProperty("message")
|
||||||
|
private String message = null;
|
||||||
public ModelApiResponse code(Integer code) {
|
|
||||||
this.code = code;
|
public ModelApiResponse code(Integer code) {
|
||||||
return this;
|
this.code = code;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get code
|
/**
|
||||||
* @return code
|
* Get code
|
||||||
**/
|
* @return code
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Integer getCode() {
|
@ApiModelProperty(value = "")
|
||||||
return code;
|
public Integer getCode() {
|
||||||
}
|
return code;
|
||||||
|
}
|
||||||
public void setCode(Integer code) {
|
|
||||||
this.code = code;
|
public void setCode(Integer code) {
|
||||||
}
|
this.code = code;
|
||||||
|
}
|
||||||
public ModelApiResponse type(String type) {
|
|
||||||
this.type = type;
|
public ModelApiResponse type(String type) {
|
||||||
return this;
|
this.type = type;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get type
|
/**
|
||||||
* @return type
|
* Get type
|
||||||
**/
|
* @return type
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getType() {
|
@ApiModelProperty(value = "")
|
||||||
return type;
|
public String getType() {
|
||||||
}
|
return type;
|
||||||
|
}
|
||||||
public void setType(String type) {
|
|
||||||
this.type = type;
|
public void setType(String type) {
|
||||||
}
|
this.type = type;
|
||||||
|
}
|
||||||
public ModelApiResponse message(String message) {
|
|
||||||
this.message = message;
|
public ModelApiResponse message(String message) {
|
||||||
return this;
|
this.message = message;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get message
|
/**
|
||||||
* @return message
|
* Get message
|
||||||
**/
|
* @return message
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getMessage() {
|
@ApiModelProperty(value = "")
|
||||||
return message;
|
public String getMessage() {
|
||||||
}
|
return message;
|
||||||
|
}
|
||||||
public void setMessage(String message) {
|
|
||||||
this.message = message;
|
public void setMessage(String message) {
|
||||||
}
|
this.message = message;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
}
|
||||||
return Objects.equals(this.code, _apiResponse.code) &&
|
ModelApiResponse _apiResponse = (ModelApiResponse) o;
|
||||||
Objects.equals(this.type, _apiResponse.type) &&
|
return Objects.equals(this.code, _apiResponse.code) &&
|
||||||
Objects.equals(this.message, _apiResponse.message);
|
Objects.equals(this.type, _apiResponse.type) &&
|
||||||
}
|
Objects.equals(this.message, _apiResponse.message);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(code, type, message);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(code, type, message);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ModelApiResponse {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ModelApiResponse {\n");
|
||||||
sb.append(" code: ").append(toIndentedString(code)).append("\n");
|
|
||||||
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
sb.append(" code: ").append(toIndentedString(code)).append("\n");
|
||||||
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
sb.append(" type: ").append(toIndentedString(type)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" message: ").append(toIndentedString(message)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,89 +1,90 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Model for testing reserved words
|
/**
|
||||||
*/
|
* Model for testing reserved words
|
||||||
@ApiModel(description = "Model for testing reserved words")
|
*/
|
||||||
|
@ApiModel(description = "Model for testing reserved words")
|
||||||
public class ModelReturn {
|
|
||||||
@JsonProperty("return")
|
public class ModelReturn {
|
||||||
private Integer _return = null;
|
@JsonProperty("return")
|
||||||
|
private Integer _return = null;
|
||||||
public ModelReturn _return(Integer _return) {
|
|
||||||
this._return = _return;
|
public ModelReturn _return(Integer _return) {
|
||||||
return this;
|
this._return = _return;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get _return
|
/**
|
||||||
* @return _return
|
* Get _return
|
||||||
**/
|
* @return _return
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Integer getReturn() {
|
@ApiModelProperty(value = "")
|
||||||
return _return;
|
public Integer getReturn() {
|
||||||
}
|
return _return;
|
||||||
|
}
|
||||||
public void setReturn(Integer _return) {
|
|
||||||
this._return = _return;
|
public void setReturn(Integer _return) {
|
||||||
}
|
this._return = _return;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ModelReturn _return = (ModelReturn) o;
|
}
|
||||||
return Objects.equals(this._return, _return._return);
|
ModelReturn _return = (ModelReturn) o;
|
||||||
}
|
return Objects.equals(this._return, _return._return);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(_return);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(_return);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ModelReturn {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ModelReturn {\n");
|
||||||
sb.append(" _return: ").append(toIndentedString(_return)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" _return: ").append(toIndentedString(_return)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,140 +1,142 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* Model for testing model name same as property name
|
/**
|
||||||
*/
|
* Model for testing model name same as property name
|
||||||
@ApiModel(description = "Model for testing model name same as property name")
|
*/
|
||||||
|
@ApiModel(description = "Model for testing model name same as property name")
|
||||||
public class Name {
|
|
||||||
@JsonProperty("name")
|
public class Name {
|
||||||
private Integer name = null;
|
@JsonProperty("name")
|
||||||
|
private Integer name = null;
|
||||||
@JsonProperty("snake_case")
|
|
||||||
private Integer snakeCase = null;
|
@JsonProperty("snake_case")
|
||||||
|
private Integer snakeCase = null;
|
||||||
@JsonProperty("property")
|
|
||||||
private String property = null;
|
@JsonProperty("property")
|
||||||
|
private String property = null;
|
||||||
@JsonProperty("123Number")
|
|
||||||
private Integer _123Number = null;
|
@JsonProperty("123Number")
|
||||||
|
private Integer _123Number = null;
|
||||||
public Name name(Integer name) {
|
|
||||||
this.name = name;
|
public Name name(Integer name) {
|
||||||
return this;
|
this.name = name;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get name
|
/**
|
||||||
* @return name
|
* Get name
|
||||||
**/
|
* @return name
|
||||||
@ApiModelProperty(required = true, value = "")
|
**/
|
||||||
public Integer getName() {
|
@ApiModelProperty(required = true, value = "")
|
||||||
return name;
|
@NotNull
|
||||||
}
|
public Integer getName() {
|
||||||
|
return name;
|
||||||
public void setName(Integer name) {
|
}
|
||||||
this.name = name;
|
|
||||||
}
|
public void setName(Integer name) {
|
||||||
|
this.name = name;
|
||||||
/**
|
}
|
||||||
* Get snakeCase
|
|
||||||
* @return snakeCase
|
/**
|
||||||
**/
|
* Get snakeCase
|
||||||
@ApiModelProperty(value = "")
|
* @return snakeCase
|
||||||
public Integer getSnakeCase() {
|
**/
|
||||||
return snakeCase;
|
@ApiModelProperty(value = "")
|
||||||
}
|
public Integer getSnakeCase() {
|
||||||
|
return snakeCase;
|
||||||
public Name property(String property) {
|
}
|
||||||
this.property = property;
|
|
||||||
return this;
|
public Name property(String property) {
|
||||||
}
|
this.property = property;
|
||||||
|
return this;
|
||||||
/**
|
}
|
||||||
* Get property
|
|
||||||
* @return property
|
/**
|
||||||
**/
|
* Get property
|
||||||
@ApiModelProperty(value = "")
|
* @return property
|
||||||
public String getProperty() {
|
**/
|
||||||
return property;
|
@ApiModelProperty(value = "")
|
||||||
}
|
public String getProperty() {
|
||||||
|
return property;
|
||||||
public void setProperty(String property) {
|
}
|
||||||
this.property = property;
|
|
||||||
}
|
public void setProperty(String property) {
|
||||||
|
this.property = property;
|
||||||
/**
|
}
|
||||||
* Get _123Number
|
|
||||||
* @return _123Number
|
/**
|
||||||
**/
|
* Get _123Number
|
||||||
@ApiModelProperty(value = "")
|
* @return _123Number
|
||||||
public Integer get123Number() {
|
**/
|
||||||
return _123Number;
|
@ApiModelProperty(value = "")
|
||||||
}
|
public Integer get123Number() {
|
||||||
|
return _123Number;
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
|
||||||
if (this == o) {
|
@Override
|
||||||
return true;
|
public boolean equals(java.lang.Object o) {
|
||||||
}
|
if (this == o) {
|
||||||
if (o == null || getClass() != o.getClass()) {
|
return true;
|
||||||
return false;
|
}
|
||||||
}
|
if (o == null || getClass() != o.getClass()) {
|
||||||
Name name = (Name) o;
|
return false;
|
||||||
return Objects.equals(this.name, name.name) &&
|
}
|
||||||
Objects.equals(this.snakeCase, name.snakeCase) &&
|
Name name = (Name) o;
|
||||||
Objects.equals(this.property, name.property) &&
|
return Objects.equals(this.name, name.name) &&
|
||||||
Objects.equals(this._123Number, name._123Number);
|
Objects.equals(this.snakeCase, name.snakeCase) &&
|
||||||
}
|
Objects.equals(this.property, name.property) &&
|
||||||
|
Objects.equals(this._123Number, name._123Number);
|
||||||
@Override
|
}
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(name, snakeCase, property, _123Number);
|
@Override
|
||||||
}
|
public int hashCode() {
|
||||||
|
return Objects.hash(name, snakeCase, property, _123Number);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public String toString() {
|
|
||||||
StringBuilder sb = new StringBuilder();
|
@Override
|
||||||
sb.append("class Name {\n");
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append("class Name {\n");
|
||||||
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
|
||||||
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n");
|
sb.append(" snakeCase: ").append(toIndentedString(snakeCase)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" property: ").append(toIndentedString(property)).append("\n");
|
||||||
return sb.toString();
|
sb.append(" _123Number: ").append(toIndentedString(_123Number)).append("\n");
|
||||||
}
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
/**
|
}
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
|
||||||
* (except the first line).
|
/**
|
||||||
*/
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
private String toIndentedString(java.lang.Object o) {
|
* (except the first line).
|
||||||
if (o == null) {
|
*/
|
||||||
return "null";
|
private String toIndentedString(java.lang.Object o) {
|
||||||
}
|
if (o == null) {
|
||||||
return o.toString().replace("\n", "\n ");
|
return "null";
|
||||||
}
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,89 +1,90 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* NumberOnly
|
/**
|
||||||
*/
|
* NumberOnly
|
||||||
|
*/
|
||||||
public class NumberOnly {
|
|
||||||
@JsonProperty("JustNumber")
|
public class NumberOnly {
|
||||||
private BigDecimal justNumber = null;
|
@JsonProperty("JustNumber")
|
||||||
|
private BigDecimal justNumber = null;
|
||||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
|
||||||
this.justNumber = justNumber;
|
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||||
return this;
|
this.justNumber = justNumber;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get justNumber
|
/**
|
||||||
* @return justNumber
|
* Get justNumber
|
||||||
**/
|
* @return justNumber
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public BigDecimal getJustNumber() {
|
@ApiModelProperty(value = "")
|
||||||
return justNumber;
|
public BigDecimal getJustNumber() {
|
||||||
}
|
return justNumber;
|
||||||
|
}
|
||||||
public void setJustNumber(BigDecimal justNumber) {
|
|
||||||
this.justNumber = justNumber;
|
public void setJustNumber(BigDecimal justNumber) {
|
||||||
}
|
this.justNumber = justNumber;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
NumberOnly numberOnly = (NumberOnly) o;
|
}
|
||||||
return Objects.equals(this.justNumber, numberOnly.justNumber);
|
NumberOnly numberOnly = (NumberOnly) o;
|
||||||
}
|
return Objects.equals(this.justNumber, numberOnly.justNumber);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(justNumber);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(justNumber);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class NumberOnly {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NumberOnly {\n");
|
||||||
sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" justNumber: ").append(toIndentedString(justNumber)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,239 +1,239 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@wordnik.com
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order
|
* Order
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Order {
|
public class Order {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
|
||||||
@JsonProperty("petId")
|
@JsonProperty("petId")
|
||||||
private Long petId = null;
|
private Long petId = null;
|
||||||
|
|
||||||
@JsonProperty("quantity")
|
@JsonProperty("quantity")
|
||||||
private Integer quantity = null;
|
private Integer quantity = null;
|
||||||
|
|
||||||
@JsonProperty("shipDate")
|
@JsonProperty("shipDate")
|
||||||
private Date shipDate = null;
|
private Date shipDate = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
*/
|
*/
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
PLACED("placed"),
|
PLACED("placed"),
|
||||||
|
|
||||||
APPROVED("approved"),
|
APPROVED("approved"),
|
||||||
|
|
||||||
DELIVERED("delivered");
|
DELIVERED("delivered");
|
||||||
|
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
StatusEnum(String value) {
|
StatusEnum(String value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@JsonValue
|
@JsonValue
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.valueOf(value);
|
return String.valueOf(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public static StatusEnum fromValue(String text) {
|
public static StatusEnum fromValue(String text) {
|
||||||
for (StatusEnum b : StatusEnum.values()) {
|
for (StatusEnum b : StatusEnum.values()) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
private StatusEnum status = null;
|
private StatusEnum status = null;
|
||||||
|
|
||||||
@JsonProperty("complete")
|
@JsonProperty("complete")
|
||||||
private Boolean complete = null;
|
private Boolean complete = false;
|
||||||
|
|
||||||
public Order id(Long id) {
|
public Order id(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order petId(Long petId) {
|
public Order petId(Long petId) {
|
||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get petId
|
* Get petId
|
||||||
* @return petId
|
* @return petId
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getPetId() {
|
public Long getPetId() {
|
||||||
return petId;
|
return petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPetId(Long petId) {
|
public void setPetId(Long petId) {
|
||||||
this.petId = petId;
|
this.petId = petId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order quantity(Integer quantity) {
|
public Order quantity(Integer quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get quantity
|
* Get quantity
|
||||||
* @return quantity
|
* @return quantity
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Integer getQuantity() {
|
public Integer getQuantity() {
|
||||||
return quantity;
|
return quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setQuantity(Integer quantity) {
|
public void setQuantity(Integer quantity) {
|
||||||
this.quantity = quantity;
|
this.quantity = quantity;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order shipDate(Date shipDate) {
|
public Order shipDate(Date shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get shipDate
|
* Get shipDate
|
||||||
* @return shipDate
|
* @return shipDate
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Date getShipDate() {
|
public Date getShipDate() {
|
||||||
return shipDate;
|
return shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setShipDate(Date shipDate) {
|
public void setShipDate(Date shipDate) {
|
||||||
this.shipDate = shipDate;
|
this.shipDate = shipDate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order status(StatusEnum status) {
|
public Order status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Order Status
|
* Order Status
|
||||||
* @return status
|
* @return status
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "Order Status")
|
@ApiModelProperty(value = "Order Status")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Order complete(Boolean complete) {
|
public Order complete(Boolean complete) {
|
||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get complete
|
* Get complete
|
||||||
* @return complete
|
* @return complete
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Boolean getComplete() {
|
public Boolean getComplete() {
|
||||||
return complete;
|
return complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setComplete(Boolean complete) {
|
public void setComplete(Boolean complete) {
|
||||||
this.complete = complete;
|
this.complete = complete;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Order order = (Order) o;
|
Order order = (Order) o;
|
||||||
return Objects.equals(this.id, order.id) &&
|
return Objects.equals(this.id, order.id) &&
|
||||||
Objects.equals(this.petId, order.petId) &&
|
Objects.equals(this.petId, order.petId) &&
|
||||||
Objects.equals(this.quantity, order.quantity) &&
|
Objects.equals(this.quantity, order.quantity) &&
|
||||||
Objects.equals(this.shipDate, order.shipDate) &&
|
Objects.equals(this.shipDate, order.shipDate) &&
|
||||||
Objects.equals(this.status, order.status) &&
|
Objects.equals(this.status, order.status) &&
|
||||||
Objects.equals(this.complete, order.complete);
|
Objects.equals(this.complete, order.complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
return Objects.hash(id, petId, quantity, shipDate, status, complete);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class Order {\n");
|
sb.append("class Order {\n");
|
||||||
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
|
sb.append(" petId: ").append(toIndentedString(petId)).append("\n");
|
||||||
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
|
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
|
||||||
sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
|
sb.append(" shipDate: ").append(toIndentedString(shipDate)).append("\n");
|
||||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||||
sb.append(" complete: ").append(toIndentedString(complete)).append("\n");
|
sb.append(" complete: ").append(toIndentedString(complete)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
* (except the first line).
|
* (except the first line).
|
||||||
*/
|
*/
|
||||||
private String toIndentedString(java.lang.Object o) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* Swagger Petstore
|
||||||
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
|
*
|
||||||
|
* OpenAPI spec version: 1.0.0
|
||||||
|
* Contact: apiteam@swagger.io
|
||||||
|
*
|
||||||
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
|
* Do not edit the class manually.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
package io.swagger.model;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets or Sets OuterEnum
|
||||||
|
*/
|
||||||
|
public enum OuterEnum {
|
||||||
|
|
||||||
|
PLACED("placed"),
|
||||||
|
|
||||||
|
APPROVED("approved"),
|
||||||
|
|
||||||
|
DELIVERED("delivered");
|
||||||
|
|
||||||
|
private String value;
|
||||||
|
|
||||||
|
OuterEnum(String value) {
|
||||||
|
this.value = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.valueOf(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
@JsonCreator
|
||||||
|
public static OuterEnum fromValue(String text) {
|
||||||
|
for (OuterEnum b : OuterEnum.values()) {
|
||||||
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
|
return b;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,254 +1,254 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@wordnik.com
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import com.fasterxml.jackson.annotation.JsonValue;
|
import com.fasterxml.jackson.annotation.JsonValue;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import io.swagger.model.Category;
|
import io.swagger.model.Category;
|
||||||
import io.swagger.model.Tag;
|
import io.swagger.model.Tag;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pet
|
* Pet
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Pet {
|
public class Pet {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
|
||||||
@JsonProperty("category")
|
@JsonProperty("category")
|
||||||
private Category category = null;
|
private Category category = null;
|
||||||
|
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
@JsonProperty("photoUrls")
|
@JsonProperty("photoUrls")
|
||||||
private List<String> photoUrls = new ArrayList<String>();
|
private List<String> photoUrls = new ArrayList<String>();
|
||||||
|
|
||||||
@JsonProperty("tags")
|
@JsonProperty("tags")
|
||||||
private List<Tag> tags = new ArrayList<Tag>();
|
private List<Tag> tags = new ArrayList<Tag>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
*/
|
*/
|
||||||
public enum StatusEnum {
|
public enum StatusEnum {
|
||||||
AVAILABLE("available"),
|
AVAILABLE("available"),
|
||||||
|
|
||||||
PENDING("pending"),
|
PENDING("pending"),
|
||||||
|
|
||||||
SOLD("sold");
|
SOLD("sold");
|
||||||
|
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
StatusEnum(String value) {
|
StatusEnum(String value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@JsonValue
|
@JsonValue
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.valueOf(value);
|
return String.valueOf(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator
|
||||||
public static StatusEnum fromValue(String text) {
|
public static StatusEnum fromValue(String text) {
|
||||||
for (StatusEnum b : StatusEnum.values()) {
|
for (StatusEnum b : StatusEnum.values()) {
|
||||||
if (String.valueOf(b.value).equals(text)) {
|
if (String.valueOf(b.value).equals(text)) {
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@JsonProperty("status")
|
@JsonProperty("status")
|
||||||
private StatusEnum status = null;
|
private StatusEnum status = null;
|
||||||
|
|
||||||
public Pet id(Long id) {
|
public Pet id(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet category(Category category) {
|
public Pet category(Category category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get category
|
* Get category
|
||||||
* @return category
|
* @return category
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Category getCategory() {
|
public Category getCategory() {
|
||||||
return category;
|
return category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory(Category category) {
|
public void setCategory(Category category) {
|
||||||
this.category = category;
|
this.category = category;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet name(String name) {
|
public Pet name(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(example = "doggie", required = true, value = "")
|
@ApiModelProperty(example = "doggie", required = true, value = "")
|
||||||
@NotNull
|
@NotNull
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet photoUrls(List<String> photoUrls) {
|
public Pet photoUrls(List<String> photoUrls) {
|
||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet addPhotoUrlsItem(String photoUrlsItem) {
|
public Pet addPhotoUrlsItem(String photoUrlsItem) {
|
||||||
this.photoUrls.add(photoUrlsItem);
|
this.photoUrls.add(photoUrlsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get photoUrls
|
* Get photoUrls
|
||||||
* @return photoUrls
|
* @return photoUrls
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(required = true, value = "")
|
@ApiModelProperty(required = true, value = "")
|
||||||
@NotNull
|
@NotNull
|
||||||
public List<String> getPhotoUrls() {
|
public List<String> getPhotoUrls() {
|
||||||
return photoUrls;
|
return photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhotoUrls(List<String> photoUrls) {
|
public void setPhotoUrls(List<String> photoUrls) {
|
||||||
this.photoUrls = photoUrls;
|
this.photoUrls = photoUrls;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet tags(List<Tag> tags) {
|
public Pet tags(List<Tag> tags) {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet addTagsItem(Tag tagsItem) {
|
public Pet addTagsItem(Tag tagsItem) {
|
||||||
this.tags.add(tagsItem);
|
this.tags.add(tagsItem);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get tags
|
* Get tags
|
||||||
* @return tags
|
* @return tags
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public List<Tag> getTags() {
|
public List<Tag> getTags() {
|
||||||
return tags;
|
return tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setTags(List<Tag> tags) {
|
public void setTags(List<Tag> tags) {
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Pet status(StatusEnum status) {
|
public Pet status(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* pet status in the store
|
* pet status in the store
|
||||||
* @return status
|
* @return status
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "pet status in the store")
|
@ApiModelProperty(value = "pet status in the store")
|
||||||
public StatusEnum getStatus() {
|
public StatusEnum getStatus() {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setStatus(StatusEnum status) {
|
public void setStatus(StatusEnum status) {
|
||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Pet pet = (Pet) o;
|
Pet pet = (Pet) o;
|
||||||
return Objects.equals(this.id, pet.id) &&
|
return Objects.equals(this.id, pet.id) &&
|
||||||
Objects.equals(this.category, pet.category) &&
|
Objects.equals(this.category, pet.category) &&
|
||||||
Objects.equals(this.name, pet.name) &&
|
Objects.equals(this.name, pet.name) &&
|
||||||
Objects.equals(this.photoUrls, pet.photoUrls) &&
|
Objects.equals(this.photoUrls, pet.photoUrls) &&
|
||||||
Objects.equals(this.tags, pet.tags) &&
|
Objects.equals(this.tags, pet.tags) &&
|
||||||
Objects.equals(this.status, pet.status);
|
Objects.equals(this.status, pet.status);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, category, name, photoUrls, tags, status);
|
return Objects.hash(id, category, name, photoUrls, tags, status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class Pet {\n");
|
sb.append("class Pet {\n");
|
||||||
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
sb.append(" category: ").append(toIndentedString(category)).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
|
sb.append(" photoUrls: ").append(toIndentedString(photoUrls)).append("\n");
|
||||||
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
|
sb.append(" tags: ").append(toIndentedString(tags)).append("\n");
|
||||||
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
sb.append(" status: ").append(toIndentedString(status)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
* (except the first line).
|
* (except the first line).
|
||||||
*/
|
*/
|
||||||
private String toIndentedString(java.lang.Object o) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,102 +1,103 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* ReadOnlyFirst
|
/**
|
||||||
*/
|
* ReadOnlyFirst
|
||||||
|
*/
|
||||||
public class ReadOnlyFirst {
|
|
||||||
@JsonProperty("bar")
|
public class ReadOnlyFirst {
|
||||||
private String bar = null;
|
@JsonProperty("bar")
|
||||||
|
private String bar = null;
|
||||||
@JsonProperty("baz")
|
|
||||||
private String baz = null;
|
@JsonProperty("baz")
|
||||||
|
private String baz = null;
|
||||||
/**
|
|
||||||
* Get bar
|
/**
|
||||||
* @return bar
|
* Get bar
|
||||||
**/
|
* @return bar
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getBar() {
|
@ApiModelProperty(value = "")
|
||||||
return bar;
|
public String getBar() {
|
||||||
}
|
return bar;
|
||||||
|
}
|
||||||
public ReadOnlyFirst baz(String baz) {
|
|
||||||
this.baz = baz;
|
public ReadOnlyFirst baz(String baz) {
|
||||||
return this;
|
this.baz = baz;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get baz
|
/**
|
||||||
* @return baz
|
* Get baz
|
||||||
**/
|
* @return baz
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public String getBaz() {
|
@ApiModelProperty(value = "")
|
||||||
return baz;
|
public String getBaz() {
|
||||||
}
|
return baz;
|
||||||
|
}
|
||||||
public void setBaz(String baz) {
|
|
||||||
this.baz = baz;
|
public void setBaz(String baz) {
|
||||||
}
|
this.baz = baz;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
|
}
|
||||||
return Objects.equals(this.bar, readOnlyFirst.bar) &&
|
ReadOnlyFirst readOnlyFirst = (ReadOnlyFirst) o;
|
||||||
Objects.equals(this.baz, readOnlyFirst.baz);
|
return Objects.equals(this.bar, readOnlyFirst.bar) &&
|
||||||
}
|
Objects.equals(this.baz, readOnlyFirst.baz);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(bar, baz);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(bar, baz);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class ReadOnlyFirst {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class ReadOnlyFirst {\n");
|
||||||
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
|
||||||
sb.append(" baz: ").append(toIndentedString(baz)).append("\n");
|
sb.append(" bar: ").append(toIndentedString(bar)).append("\n");
|
||||||
sb.append("}");
|
sb.append(" baz: ").append(toIndentedString(baz)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,88 +1,89 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
/**
|
|
||||||
* SpecialModelName
|
/**
|
||||||
*/
|
* SpecialModelName
|
||||||
|
*/
|
||||||
public class SpecialModelName {
|
|
||||||
@JsonProperty("$special[property.name]")
|
public class SpecialModelName {
|
||||||
private Long specialPropertyName = null;
|
@JsonProperty("$special[property.name]")
|
||||||
|
private Long specialPropertyName = null;
|
||||||
public SpecialModelName specialPropertyName(Long specialPropertyName) {
|
|
||||||
this.specialPropertyName = specialPropertyName;
|
public SpecialModelName specialPropertyName(Long specialPropertyName) {
|
||||||
return this;
|
this.specialPropertyName = specialPropertyName;
|
||||||
}
|
return this;
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Get specialPropertyName
|
/**
|
||||||
* @return specialPropertyName
|
* Get specialPropertyName
|
||||||
**/
|
* @return specialPropertyName
|
||||||
@ApiModelProperty(value = "")
|
**/
|
||||||
public Long getSpecialPropertyName() {
|
@ApiModelProperty(value = "")
|
||||||
return specialPropertyName;
|
public Long getSpecialPropertyName() {
|
||||||
}
|
return specialPropertyName;
|
||||||
|
}
|
||||||
public void setSpecialPropertyName(Long specialPropertyName) {
|
|
||||||
this.specialPropertyName = specialPropertyName;
|
public void setSpecialPropertyName(Long specialPropertyName) {
|
||||||
}
|
this.specialPropertyName = specialPropertyName;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(java.lang.Object o) {
|
@Override
|
||||||
if (this == o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
return true;
|
if (this == o) {
|
||||||
}
|
return true;
|
||||||
if (o == null || getClass() != o.getClass()) {
|
}
|
||||||
return false;
|
if (o == null || getClass() != o.getClass()) {
|
||||||
}
|
return false;
|
||||||
SpecialModelName specialModelName = (SpecialModelName) o;
|
}
|
||||||
return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName);
|
SpecialModelName specialModelName = (SpecialModelName) o;
|
||||||
}
|
return Objects.equals(this.specialPropertyName, specialModelName.specialPropertyName);
|
||||||
|
}
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
@Override
|
||||||
return Objects.hash(specialPropertyName);
|
public int hashCode() {
|
||||||
}
|
return Objects.hash(specialPropertyName);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public String toString() {
|
@Override
|
||||||
StringBuilder sb = new StringBuilder();
|
public String toString() {
|
||||||
sb.append("class SpecialModelName {\n");
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class SpecialModelName {\n");
|
||||||
sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n");
|
|
||||||
sb.append("}");
|
sb.append(" specialPropertyName: ").append(toIndentedString(specialPropertyName)).append("\n");
|
||||||
return sb.toString();
|
sb.append("}");
|
||||||
}
|
return sb.toString();
|
||||||
|
}
|
||||||
/**
|
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
/**
|
||||||
* (except the first line).
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
*/
|
* (except the first line).
|
||||||
private String toIndentedString(java.lang.Object o) {
|
*/
|
||||||
if (o == null) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
return "null";
|
if (o == null) {
|
||||||
}
|
return "null";
|
||||||
return o.toString().replace("\n", "\n ");
|
}
|
||||||
}
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -1,112 +1,112 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@wordnik.com
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tag
|
* Tag
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class Tag {
|
public class Tag {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
|
||||||
@JsonProperty("name")
|
@JsonProperty("name")
|
||||||
private String name = null;
|
private String name = null;
|
||||||
|
|
||||||
public Tag id(Long id) {
|
public Tag id(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tag name(String name) {
|
public Tag name(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get name
|
* Get name
|
||||||
* @return name
|
* @return name
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getName() {
|
public String getName() {
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
Tag tag = (Tag) o;
|
Tag tag = (Tag) o;
|
||||||
return Objects.equals(this.id, tag.id) &&
|
return Objects.equals(this.id, tag.id) &&
|
||||||
Objects.equals(this.name, tag.name);
|
Objects.equals(this.name, tag.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, name);
|
return Objects.hash(id, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class Tag {\n");
|
sb.append("class Tag {\n");
|
||||||
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
sb.append(" name: ").append(toIndentedString(name)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
* (except the first line).
|
* (except the first line).
|
||||||
*/
|
*/
|
||||||
private String toIndentedString(java.lang.Object o) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,250 +1,250 @@
|
|||||||
/*
|
/*
|
||||||
* Swagger Petstore
|
* Swagger Petstore
|
||||||
* This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@wordnik.com
|
* Contact: apiteam@swagger.io
|
||||||
*
|
*
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by the swagger code generator program.
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://github.com/swagger-api/swagger-codegen.git
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package io.swagger.model;
|
package io.swagger.model;
|
||||||
|
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
import com.fasterxml.jackson.annotation.JsonCreator;
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User
|
* User
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public class User {
|
public class User {
|
||||||
@JsonProperty("id")
|
@JsonProperty("id")
|
||||||
private Long id = null;
|
private Long id = null;
|
||||||
|
|
||||||
@JsonProperty("username")
|
@JsonProperty("username")
|
||||||
private String username = null;
|
private String username = null;
|
||||||
|
|
||||||
@JsonProperty("firstName")
|
@JsonProperty("firstName")
|
||||||
private String firstName = null;
|
private String firstName = null;
|
||||||
|
|
||||||
@JsonProperty("lastName")
|
@JsonProperty("lastName")
|
||||||
private String lastName = null;
|
private String lastName = null;
|
||||||
|
|
||||||
@JsonProperty("email")
|
@JsonProperty("email")
|
||||||
private String email = null;
|
private String email = null;
|
||||||
|
|
||||||
@JsonProperty("password")
|
@JsonProperty("password")
|
||||||
private String password = null;
|
private String password = null;
|
||||||
|
|
||||||
@JsonProperty("phone")
|
@JsonProperty("phone")
|
||||||
private String phone = null;
|
private String phone = null;
|
||||||
|
|
||||||
@JsonProperty("userStatus")
|
@JsonProperty("userStatus")
|
||||||
private Integer userStatus = null;
|
private Integer userStatus = null;
|
||||||
|
|
||||||
public User id(Long id) {
|
public User id(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get id
|
* Get id
|
||||||
* @return id
|
* @return id
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public Long getId() {
|
public Long getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setId(Long id) {
|
public void setId(Long id) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User username(String username) {
|
public User username(String username) {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get username
|
* Get username
|
||||||
* @return username
|
* @return username
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getUsername() {
|
public String getUsername() {
|
||||||
return username;
|
return username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUsername(String username) {
|
public void setUsername(String username) {
|
||||||
this.username = username;
|
this.username = username;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User firstName(String firstName) {
|
public User firstName(String firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get firstName
|
* Get firstName
|
||||||
* @return firstName
|
* @return firstName
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getFirstName() {
|
public String getFirstName() {
|
||||||
return firstName;
|
return firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setFirstName(String firstName) {
|
public void setFirstName(String firstName) {
|
||||||
this.firstName = firstName;
|
this.firstName = firstName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User lastName(String lastName) {
|
public User lastName(String lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get lastName
|
* Get lastName
|
||||||
* @return lastName
|
* @return lastName
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getLastName() {
|
public String getLastName() {
|
||||||
return lastName;
|
return lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setLastName(String lastName) {
|
public void setLastName(String lastName) {
|
||||||
this.lastName = lastName;
|
this.lastName = lastName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User email(String email) {
|
public User email(String email) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get email
|
* Get email
|
||||||
* @return email
|
* @return email
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getEmail() {
|
public String getEmail() {
|
||||||
return email;
|
return email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setEmail(String email) {
|
public void setEmail(String email) {
|
||||||
this.email = email;
|
this.email = email;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User password(String password) {
|
public User password(String password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get password
|
* Get password
|
||||||
* @return password
|
* @return password
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
return password;
|
return password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPassword(String password) {
|
public void setPassword(String password) {
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User phone(String phone) {
|
public User phone(String phone) {
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get phone
|
* Get phone
|
||||||
* @return phone
|
* @return phone
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "")
|
@ApiModelProperty(value = "")
|
||||||
public String getPhone() {
|
public String getPhone() {
|
||||||
return phone;
|
return phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPhone(String phone) {
|
public void setPhone(String phone) {
|
||||||
this.phone = phone;
|
this.phone = phone;
|
||||||
}
|
}
|
||||||
|
|
||||||
public User userStatus(Integer userStatus) {
|
public User userStatus(Integer userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* User Status
|
* User Status
|
||||||
* @return userStatus
|
* @return userStatus
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "User Status")
|
@ApiModelProperty(value = "User Status")
|
||||||
public Integer getUserStatus() {
|
public Integer getUserStatus() {
|
||||||
return userStatus;
|
return userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUserStatus(Integer userStatus) {
|
public void setUserStatus(Integer userStatus) {
|
||||||
this.userStatus = userStatus;
|
this.userStatus = userStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean equals(java.lang.Object o) {
|
public boolean equals(java.lang.Object o) {
|
||||||
if (this == o) {
|
if (this == o) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (o == null || getClass() != o.getClass()) {
|
if (o == null || getClass() != o.getClass()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
User user = (User) o;
|
User user = (User) o;
|
||||||
return Objects.equals(this.id, user.id) &&
|
return Objects.equals(this.id, user.id) &&
|
||||||
Objects.equals(this.username, user.username) &&
|
Objects.equals(this.username, user.username) &&
|
||||||
Objects.equals(this.firstName, user.firstName) &&
|
Objects.equals(this.firstName, user.firstName) &&
|
||||||
Objects.equals(this.lastName, user.lastName) &&
|
Objects.equals(this.lastName, user.lastName) &&
|
||||||
Objects.equals(this.email, user.email) &&
|
Objects.equals(this.email, user.email) &&
|
||||||
Objects.equals(this.password, user.password) &&
|
Objects.equals(this.password, user.password) &&
|
||||||
Objects.equals(this.phone, user.phone) &&
|
Objects.equals(this.phone, user.phone) &&
|
||||||
Objects.equals(this.userStatus, user.userStatus);
|
Objects.equals(this.userStatus, user.userStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
return Objects.hash(id, username, firstName, lastName, email, password, phone, userStatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.append("class User {\n");
|
sb.append("class User {\n");
|
||||||
|
|
||||||
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
sb.append(" id: ").append(toIndentedString(id)).append("\n");
|
||||||
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
sb.append(" username: ").append(toIndentedString(username)).append("\n");
|
||||||
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n");
|
||||||
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n");
|
||||||
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
sb.append(" email: ").append(toIndentedString(email)).append("\n");
|
||||||
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
sb.append(" password: ").append(toIndentedString(password)).append("\n");
|
||||||
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
|
sb.append(" phone: ").append(toIndentedString(phone)).append("\n");
|
||||||
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
|
sb.append(" userStatus: ").append(toIndentedString(userStatus)).append("\n");
|
||||||
sb.append("}");
|
sb.append("}");
|
||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Convert the given object to string with each line indented by 4 spaces
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
* (except the first line).
|
* (except the first line).
|
||||||
*/
|
*/
|
||||||
private String toIndentedString(java.lang.Object o) {
|
private String toIndentedString(java.lang.Object o) {
|
||||||
if (o == null) {
|
if (o == null) {
|
||||||
return "null";
|
return "null";
|
||||||
}
|
}
|
||||||
return o.toString().replace("\n", "\n ");
|
return o.toString().replace("\n", "\n ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package io.swagger.api.factories;
|
package io.swagger.api.factories;
|
||||||
|
|
||||||
import io.swagger.api.FakeApiService;
|
import io.swagger.api.FakeApiService;
|
||||||
import io.swagger.api.impl.FakeApiServiceImpl;
|
import io.swagger.api.impl.FakeApiServiceImpl;
|
||||||
|
|
||||||
|
|
||||||
public class FakeApiServiceFactory {
|
public class FakeApiServiceFactory {
|
||||||
private final static FakeApiService service = new FakeApiServiceImpl();
|
private final static FakeApiService service = new FakeApiServiceImpl();
|
||||||
|
|
||||||
public static FakeApiService getFakeApi() {
|
public static FakeApiService getFakeApi() {
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package io.swagger.api.factories;
|
package io.swagger.api.factories;
|
||||||
|
|
||||||
import io.swagger.api.PetApiService;
|
import io.swagger.api.PetApiService;
|
||||||
import io.swagger.api.impl.PetApiServiceImpl;
|
import io.swagger.api.impl.PetApiServiceImpl;
|
||||||
|
|
||||||
|
|
||||||
public class PetApiServiceFactory {
|
public class PetApiServiceFactory {
|
||||||
private final static PetApiService service = new PetApiServiceImpl();
|
private final static PetApiService service = new PetApiServiceImpl();
|
||||||
|
|
||||||
public static PetApiService getPetApi() {
|
public static PetApiService getPetApi() {
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package io.swagger.api.factories;
|
package io.swagger.api.factories;
|
||||||
|
|
||||||
import io.swagger.api.StoreApiService;
|
import io.swagger.api.StoreApiService;
|
||||||
import io.swagger.api.impl.StoreApiServiceImpl;
|
import io.swagger.api.impl.StoreApiServiceImpl;
|
||||||
|
|
||||||
|
|
||||||
public class StoreApiServiceFactory {
|
public class StoreApiServiceFactory {
|
||||||
private final static StoreApiService service = new StoreApiServiceImpl();
|
private final static StoreApiService service = new StoreApiServiceImpl();
|
||||||
|
|
||||||
public static StoreApiService getStoreApi() {
|
public static StoreApiService getStoreApi() {
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
package io.swagger.api.factories;
|
package io.swagger.api.factories;
|
||||||
|
|
||||||
import io.swagger.api.UserApiService;
|
import io.swagger.api.UserApiService;
|
||||||
import io.swagger.api.impl.UserApiServiceImpl;
|
import io.swagger.api.impl.UserApiServiceImpl;
|
||||||
|
|
||||||
|
|
||||||
public class UserApiServiceFactory {
|
public class UserApiServiceFactory {
|
||||||
private final static UserApiService service = new UserApiServiceImpl();
|
private final static UserApiService service = new UserApiServiceImpl();
|
||||||
|
|
||||||
public static UserApiService getUserApi() {
|
public static UserApiService getUserApi() {
|
||||||
return service;
|
return service;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,43 +1,43 @@
|
|||||||
package io.swagger.api.impl;
|
package io.swagger.api.impl;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import io.swagger.model.Client;
|
import io.swagger.model.Client;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public class FakeApiServiceImpl extends FakeApiService {
|
public class FakeApiServiceImpl extends FakeApiService {
|
||||||
@Override
|
@Override
|
||||||
public Response testClientModel(Client body, SecurityContext securityContext)
|
public Response testClientModel(Client body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, Date date, Date dateTime, String password, String paramCallback, SecurityContext securityContext)
|
public Response testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, byte[] binary, Date date, Date dateTime, String password, String paramCallback, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, BigDecimal enumQueryInteger, Double enumQueryDouble, SecurityContext securityContext)
|
public Response testEnumParameters(List<String> enumFormStringArray, String enumFormString, List<String> enumHeaderStringArray, String enumHeaderString, List<String> enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,73 @@
|
|||||||
package io.swagger.api.impl;
|
package io.swagger.api.impl;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import io.swagger.model.Pet;
|
import io.swagger.model.ModelApiResponse;
|
||||||
|
import io.swagger.model.Pet;
|
||||||
import java.util.List;
|
|
||||||
import io.swagger.api.NotFoundException;
|
import java.util.List;
|
||||||
|
import io.swagger.api.NotFoundException;
|
||||||
import java.io.InputStream;
|
|
||||||
|
import java.io.InputStream;
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
import javax.ws.rs.core.Response;
|
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.Response;
|
||||||
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
public class PetApiServiceImpl extends PetApiService {
|
|
||||||
@Override
|
public class PetApiServiceImpl extends PetApiService {
|
||||||
public Response addPet(Pet body, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response addPet(Pet body, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response deletePet(Long petId, String apiKey, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response deletePet(Long petId, String apiKey, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response findPetsByStatus( List<String> status, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response findPetsByStatus( @NotNull List<String> status, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response findPetsByTags( List<String> tags, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response findPetsByTags( @NotNull List<String> tags, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response getPetById(Long petId, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response getPetById(Long petId, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response updatePet(Pet body, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response updatePet(Pet body, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response updatePetWithForm(String petId, String name, String status, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response updatePetWithForm(Long petId, String name, String status, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
@Override
|
}
|
||||||
public Response uploadFile(Long petId, String additionalMetadata, InputStream fileInputStream, FormDataContentDisposition fileDetail, SecurityContext securityContext)
|
@Override
|
||||||
throws NotFoundException {
|
public Response uploadFile(Long petId, String additionalMetadata, InputStream fileInputStream, FormDataContentDisposition fileDetail, SecurityContext securityContext)
|
||||||
// do some magic!
|
throws NotFoundException {
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
// do some magic!
|
||||||
}
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,48 +1,48 @@
|
|||||||
package io.swagger.api.impl;
|
package io.swagger.api.impl;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import io.swagger.model.Order;
|
import io.swagger.model.Order;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public class StoreApiServiceImpl extends StoreApiService {
|
public class StoreApiServiceImpl extends StoreApiService {
|
||||||
@Override
|
@Override
|
||||||
public Response deleteOrder(String orderId, SecurityContext securityContext)
|
public Response deleteOrder( @Min(1)String orderId, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response getInventory(SecurityContext securityContext)
|
public Response getInventory(SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response getOrderById(String orderId, SecurityContext securityContext)
|
public Response getOrderById( @Min(1) @Max(5)Long orderId, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response placeOrder(Order body, SecurityContext securityContext)
|
public Response placeOrder(Order body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,72 +1,72 @@
|
|||||||
package io.swagger.api.impl;
|
package io.swagger.api.impl;
|
||||||
|
|
||||||
import io.swagger.api.*;
|
import io.swagger.api.*;
|
||||||
import io.swagger.model.*;
|
import io.swagger.model.*;
|
||||||
|
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.model.User;
|
import io.swagger.model.User;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import io.swagger.api.NotFoundException;
|
import io.swagger.api.NotFoundException;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
|
|
||||||
import com.sun.jersey.core.header.FormDataContentDisposition;
|
import com.sun.jersey.core.header.FormDataContentDisposition;
|
||||||
import com.sun.jersey.multipart.FormDataParam;
|
import com.sun.jersey.multipart.FormDataParam;
|
||||||
|
|
||||||
import javax.ws.rs.core.Response;
|
import javax.ws.rs.core.Response;
|
||||||
import javax.ws.rs.core.SecurityContext;
|
import javax.ws.rs.core.SecurityContext;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
public class UserApiServiceImpl extends UserApiService {
|
public class UserApiServiceImpl extends UserApiService {
|
||||||
@Override
|
@Override
|
||||||
public Response createUser(User body, SecurityContext securityContext)
|
public Response createUser(User body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response createUsersWithArrayInput(List<User> body, SecurityContext securityContext)
|
public Response createUsersWithArrayInput(List<User> body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response createUsersWithListInput(List<User> body, SecurityContext securityContext)
|
public Response createUsersWithListInput(List<User> body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response deleteUser(String username, SecurityContext securityContext)
|
public Response deleteUser(String username, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response getUserByName(String username, SecurityContext securityContext)
|
public Response getUserByName(String username, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response loginUser( String username, String password, SecurityContext securityContext)
|
public Response loginUser( @NotNull String username, @NotNull String password, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response logoutUser(SecurityContext securityContext)
|
public Response logoutUser(SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public Response updateUser(String username, User body, SecurityContext securityContext)
|
public Response updateUser(String username, User body, SecurityContext securityContext)
|
||||||
throws NotFoundException {
|
throws NotFoundException {
|
||||||
// do some magic!
|
// do some magic!
|
||||||
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
return Response.ok().entity(new ApiResponseMessage(ApiResponseMessage.OK, "magic!")).build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user