Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
{{#isBodyParam}}@ApiParam(value = "{{{description}}}" {{#required}},required=true{{/required}}{{#allowableValues}}, {{> allowableValues }}{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}) {{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}}{{{dataType}}} {{paramName}}{{/isBodyParam}}
{{#isBodyParam}}{{!

}}@ApiParam(value = "{{{description}}}"{{!
}}{{#required}}, required = true{{/required}}{{!
}}{{#allowableValues}}, {{> allowableValues}}{{/allowableValues}}{{!
}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{!
}}){{!

}}{{#useBeanValidation}} {{>beanValidation}}{{/useBeanValidation}}{{!

}} {{{dataType}}} {{paramName}}{{!

}}{{/isBodyParam}}
Original file line number Diff line number Diff line change
@@ -1 +1,15 @@
{{#isPathParam}}@ApiParam(value = "{{{description}}}"{{#required}},required=true{{/required}}{{#allowableValues}}, {{> allowableValues }}{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}}) @PathParam("{{baseName}}") {{{dataType}}} {{paramName}}{{/isPathParam}}
{{#isPathParam}}{{!

}}@ApiParam(value = "{{{description}}}"{{!
}}{{#required}}, required = true{{/required}}{{!
}}{{#allowableValues}}, {{> allowableValues}}{{/allowableValues}}{{!
}}{{#defaultValue}}, defaultValue = "{{{defaultValue}}}"{{/defaultValue}}{{!
}}){{!

}} @PathParam("{{baseName}}"){{!

}}{{#useBeanValidation}} {{>beanValidation}}{{/useBeanValidation}}{{!

}} {{{dataType}}} {{paramName}}{{!

}}{{/isPathParam}}
Original file line number Diff line number Diff line change
@@ -1 +1,35 @@
{{#isQueryParam}}@ApiParam(value = "{{{description}}}"{{#required}},required=true{{/required}}{{^isContainer}}{{#allowableValues}}, {{> allowableValues }}{{/allowableValues}}{{#defaultValue}}, defaultValue={{^isString}}"{{/isString}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{{defaultValue}}}{{^isString}}"{{/isString}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{/defaultValue}}{{/isContainer}}){{^isContainer}}{{#defaultValue}} @DefaultValue({{^isString}}"{{/isString}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{{defaultValue}}}{{^isString}}"{{/isString}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}){{/defaultValue}}{{/isContainer}}@QueryParam("{{baseName}}") {{{dataType}}} {{paramName}}{{/isQueryParam}}
{{#isQueryParam}}{{!

}}@ApiParam(value = "{{{description}}}"{{!
}}{{#required}}, required = true{{/required}}{{!
}}{{^isContainer}}{{!
}}{{#allowableValues}}, {{> allowableValues}}{{/allowableValues}}{{!
}}{{#defaultValue}}, defaultValue = {{!
}}{{^isString}}"{{/isString}}{{!
}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{!
}}{{{defaultValue}}}{{!
}}{{^isString}}"{{/isString}}{{!
}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{!
}}{{/defaultValue}}{{!
}}{{/isContainer}}{{!
}}){{!

}}{{^isContainer}}{{!
}}{{#defaultValue}}{{!
}} @DefaultValue({{!
}}{{^isString}}"{{/isString}}{{!
}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{!
}}{{{defaultValue}}}{{!
}}{{^isString}}"{{/isString}}{{!
}}{{#isString}}{{#isEnum}}"{{/isEnum}}{{/isString}}{{!
}}){{!
}}{{/defaultValue}}{{!
}}{{/isContainer}}{{!

}} @QueryParam("{{baseName}}"){{!

}}{{#useBeanValidation}} {{>beanValidation}}{{/useBeanValidation}}{{!

}} {{{dataType}}} {{paramName}}{{!

}}{{/isQueryParam}}
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public AnotherFakeApi(@Context ServletConfig servletContext) {
@io.swagger.annotations.ApiOperation(value = "To test special tags", notes = "To test special tags and operation ID starting with number", response = Client.class, tags={ "$another-fake?", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response call123testSpecialTags(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body
public Response call123testSpecialTags(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.call123testSpecialTags(body, securityContext);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public FakeApi(@Context ServletConfig servletContext) {
@io.swagger.annotations.ApiOperation(value = "creates an XmlItem", notes = "this route creates an XmlItem", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
public Response createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true) @NotNull @Valid XmlItem xmlItem
public Response createXmlItem(@ApiParam(value = "XmlItem Body", required = true) @NotNull @Valid XmlItem xmlItem
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.createXmlItem(xmlItem, securityContext);
Expand All @@ -84,7 +84,7 @@ public Response createXmlItem(@ApiParam(value = "XmlItem Body" ,required=true) @
@io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer boolean types", response = Boolean.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Output boolean", response = Boolean.class) })
public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body" ) Boolean body
public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as post body") Boolean body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.fakeOuterBooleanSerialize(body, securityContext);
Expand All @@ -96,7 +96,7 @@ public Response fakeOuterBooleanSerialize(@ApiParam(value = "Input boolean as po
@io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of object with outer number type", response = OuterComposite.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Output composite", response = OuterComposite.class) })
public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body" ) @Valid OuterComposite body
public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite as post body") @Valid OuterComposite body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.fakeOuterCompositeSerialize(body, securityContext);
Expand All @@ -108,7 +108,7 @@ public Response fakeOuterCompositeSerialize(@ApiParam(value = "Input composite a
@io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer number types", response = BigDecimal.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Output number", response = BigDecimal.class) })
public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body" ) BigDecimal body
public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post body") BigDecimal body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.fakeOuterNumberSerialize(body, securityContext);
Expand All @@ -120,7 +120,7 @@ public Response fakeOuterNumberSerialize(@ApiParam(value = "Input number as post
@io.swagger.annotations.ApiOperation(value = "", notes = "Test serialization of outer string types", response = String.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Output string", response = String.class) })
public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body" ) String body
public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post body") String body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.fakeOuterStringSerialize(body, securityContext);
Expand All @@ -132,7 +132,7 @@ public Response fakeOuterStringSerialize(@ApiParam(value = "Input string as post
@io.swagger.annotations.ApiOperation(value = "", notes = "For this test, the body for this request much reference a schema named `File`.", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @NotNull @Valid FileSchemaTestClass body
public Response testBodyWithFileSchema(@ApiParam(value = "", required = true) @NotNull @Valid FileSchemaTestClass body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testBodyWithFileSchema(body, securityContext);
Expand All @@ -144,8 +144,8 @@ public Response testBodyWithFileSchema(@ApiParam(value = "" ,required=true) @Not
@io.swagger.annotations.ApiOperation(value = "", notes = "", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
public Response testBodyWithQueryParams(@ApiParam(value = "",required=true)@QueryParam("query") String query
,@ApiParam(value = "" ,required=true) @NotNull @Valid User body
public Response testBodyWithQueryParams(@ApiParam(value = "", required = true) @QueryParam("query") @NotNull String query
,@ApiParam(value = "", required = true) @NotNull @Valid User body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testBodyWithQueryParams(query, body, securityContext);
Expand All @@ -157,7 +157,7 @@ public Response testBodyWithQueryParams(@ApiParam(value = "",required=true)@Quer
@io.swagger.annotations.ApiOperation(value = "To test \"client\" model", notes = "To test \"client\" model", response = Client.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testClientModel(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body
public Response testClientModel(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testClientModel(body, securityContext);
Expand Down Expand Up @@ -204,10 +204,10 @@ public Response testEndpointParameters(@ApiParam(value = "None", required=true)
@io.swagger.annotations.ApiResponse(code = 404, message = "Not found", response = Void.class) })
public Response testEnumParameters(@ApiParam(value = "Header parameter enum test (string array)" , allowableValues=">, $", defaultValue="new ArrayList<>()")@HeaderParam("enum_header_string_array") List<String> enumHeaderStringArray
,@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 array)")@QueryParam("enum_query_string_array") List<String> enumQueryStringArray
,@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)", allowableValues="1, -2")@QueryParam("enum_query_integer") Integer enumQueryInteger
,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2")@QueryParam("enum_query_double") Double enumQueryDouble
,@ApiParam(value = "Query parameter enum test (string array)") @QueryParam("enum_query_string_array") @Valid List<String> enumQueryStringArray
,@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)", allowableValues="1, -2") @QueryParam("enum_query_integer") Integer enumQueryInteger
,@ApiParam(value = "Query parameter enum test (double)", allowableValues="1.1, -1.2") @QueryParam("enum_query_double") Double enumQueryDouble
,@ApiParam(value = "Form parameter enum test (string array)", allowableValues=">, $", defaultValue="$") @DefaultValue("$") @FormParam("enum_form_string_array") List<String> enumFormStringArray
,@ApiParam(value = "Form parameter enum test (string)", allowableValues="_abc, -efg, (xyz)", defaultValue="-efg") @DefaultValue("-efg") @FormParam("enum_form_string") String enumFormString
,@Context SecurityContext securityContext)
Expand All @@ -221,12 +221,12 @@ public Response testEnumParameters(@ApiParam(value = "Header parameter enum test
@io.swagger.annotations.ApiOperation(value = "Fake endpoint to test group parameters (optional)", notes = "Fake endpoint to test group parameters (optional)", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 400, message = "Someting wrong", response = Void.class) })
public Response testGroupParameters(@ApiParam(value = "Required String in group parameters",required=true)@QueryParam("required_string_group") Integer requiredStringGroup
public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Integer requiredStringGroup
,@ApiParam(value = "Required Boolean in group parameters" ,required=true)@HeaderParam("required_boolean_group") Boolean requiredBooleanGroup
,@ApiParam(value = "Required Integer in group parameters",required=true)@QueryParam("required_int64_group") Long requiredInt64Group
,@ApiParam(value = "String in group parameters")@QueryParam("string_group") Integer stringGroup
,@ApiParam(value = "Required Integer in group parameters", required = true) @QueryParam("required_int64_group") @NotNull Long requiredInt64Group
,@ApiParam(value = "String in group parameters") @QueryParam("string_group") Integer stringGroup
,@ApiParam(value = "Boolean in group parameters" )@HeaderParam("boolean_group") Boolean booleanGroup
,@ApiParam(value = "Integer in group parameters")@QueryParam("int64_group") Long int64Group
,@ApiParam(value = "Integer in group parameters") @QueryParam("int64_group") Long int64Group
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group, securityContext);
Expand All @@ -238,7 +238,7 @@ public Response testGroupParameters(@ApiParam(value = "Required String in group
@io.swagger.annotations.ApiOperation(value = "test inline additionalProperties", notes = "", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Void.class) })
public Response testInlineAdditionalProperties(@ApiParam(value = "request body" ,required=true) @NotNull @Valid Map<String, String> param
public Response testInlineAdditionalProperties(@ApiParam(value = "request body", required = true) @NotNull @Valid Map<String, String> param
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testInlineAdditionalProperties(param, securityContext);
Expand All @@ -263,11 +263,11 @@ public Response testJsonFormData(@ApiParam(value = "field1", required=true) @Fo
@io.swagger.annotations.ApiOperation(value = "", notes = "To test the collection format in query parameters", response = Void.class, tags={ "fake", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "Success", response = Void.class) })
public Response testQueryParameterCollectionFormat(@ApiParam(value = "",required=true)@QueryParam("pipe") List<String> pipe
,@ApiParam(value = "",required=true)@QueryParam("ioutil") List<String> ioutil
,@ApiParam(value = "",required=true)@QueryParam("http") List<String> http
,@ApiParam(value = "",required=true)@QueryParam("url") List<String> url
,@ApiParam(value = "",required=true)@QueryParam("context") List<String> context
public Response testQueryParameterCollectionFormat(@ApiParam(value = "", required = true) @QueryParam("pipe") @NotNull @Valid List<String> pipe
,@ApiParam(value = "", required = true) @QueryParam("ioutil") @NotNull @Valid List<String> ioutil
,@ApiParam(value = "", required = true) @QueryParam("http") @NotNull @Valid List<String> http
,@ApiParam(value = "", required = true) @QueryParam("url") @NotNull @Valid List<String> url
,@ApiParam(value = "", required = true) @QueryParam("context") @NotNull @Valid List<String> context
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testQueryParameterCollectionFormat(pipe, ioutil, http, url, context, securityContext);
Expand All @@ -284,7 +284,7 @@ public Response testQueryParameterCollectionFormat(@ApiParam(value = "",required
}, tags={ "pet", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = ModelApiResponse.class) })
public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update",required=true) @PathParam("petId") Long petId
public Response uploadFileWithRequiredFile(@ApiParam(value = "ID of pet to update", required = true) @PathParam("petId") @NotNull Long petId
,
@FormDataParam("requiredFile") InputStream requiredFileInputStream,
@FormDataParam("requiredFile") FormDataContentDisposition requiredFileDetail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public FakeClassnameTestApi(@Context ServletConfig servletContext) {
}, tags={ "fake_classname_tags 123#$%^", })
@io.swagger.annotations.ApiResponses(value = {
@io.swagger.annotations.ApiResponse(code = 200, message = "successful operation", response = Client.class) })
public Response testClassname(@ApiParam(value = "client model" ,required=true) @NotNull @Valid Client body
public Response testClassname(@ApiParam(value = "client model", required = true) @NotNull @Valid Client body
,@Context SecurityContext securityContext)
throws NotFoundException {
return delegate.testClassname(body, securityContext);
Expand Down
Loading