changed description of swagger
package greencity.constant;
public final class SwaggerExampleModel {
+ private static final String IMAGE_DESCRIPTION = "pass image as base64 or upload image\n";
+
private static final String BEFORE_EXAMPLE = "<div>\n"
+ "\t<ul class=\"tab\">\n"
+ "\t\t<li class=\"tabitem active\">\n"
@@ -12,7 +14,7 @@ public final class SwaggerExampleModel {
+ "\t</ul>\n"
+ "\t<pre>\n";
- private static final String EXAMPLE = " \"image\": \"string\",\n"
+ private static final String EXAMPLE = " \"image (base64)\": \"string\",\n"
+ " \"source\": \"string\",\n"
+ " \"tags\": [\n"
+ " \"string\"\n"
@@ -34,6 +36,7 @@ public final class SwaggerExampleModel {
public static final String ADD_TIPS_AND_TRICKS_REQUEST =
"Add tips & tricks request\n"
+ + IMAGE_DESCRIPTION
+ BEFORE_EXAMPLE
+ "{\n"
+ EXAMPLE
@@ -42,6 +45,7 @@ public final class SwaggerExampleModel {
public static final String ADD_ECO_NEWS_REQUEST =
"Add Eco News Request\n"
+ + IMAGE_DESCRIPTION
+ BEFORE_EXAMPLE
+ "{\n"
+ EXAMPLE
@@ -49,6 +53,7 @@ public final class SwaggerExampleModel {
+ AFTER_EXAMPLE;
public static final String UPDATE_ECO_NEWS =
"Update Eco News\n"
+ + IMAGE_DESCRIPTION
+ BEFORE_EXAMPLE
+ "{\n"
+ " \"id\": 0,\n"
