From 7d0e003bf2b2d2419f5841baebf02c7b9b694cb0 Mon Sep 17 00:00:00 2001 From: Tony Tam Date: Wed, 4 Feb 2015 06:51:16 -0800 Subject: [PATCH] added form params template --- src/main/resources/JavaJaxRS/formParams.mustache | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/main/resources/JavaJaxRS/formParams.mustache diff --git a/src/main/resources/JavaJaxRS/formParams.mustache b/src/main/resources/JavaJaxRS/formParams.mustache new file mode 100644 index 0000000000..46076485aa --- /dev/null +++ b/src/main/resources/JavaJaxRS/formParams.mustache @@ -0,0 +1 @@ +{{#isFormParam}}{{#notFile}}@ApiParam(value = "{{{description}}}"{{#required}}, required=true{{/required}} {{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}})@FormParam("{{paramName}}") {{{dataType}}} {{paramName}}{{/notFile}}{{#isFile}}@ApiParam(value = "{{{description}}}"{{#required}}, required=true{{/required}} {{#allowableValues}}, allowableValues="{{{allowableValues}}}"{{/allowableValues}}{{#defaultValue}}, defaultValue="{{{defaultValue}}}"{{/defaultValue}})@FormDataParam("{{paramName}}") {{{dataType}}} {{paramName}}{{/isFile}}{{/isFormParam}} \ No newline at end of file