Commit 3e39791ed06e38a969938f9fbb5cb7d525985c53

Authored by Andrii Shvaika
1 parent f7aa8cc7

Fix UUID wiki url

@@ -18,7 +18,7 @@ package org.thingsboard.server.controller; @@ -18,7 +18,7 @@ package org.thingsboard.server.controller;
18 public class ControllerConstants { 18 public class ControllerConstants {
19 19
20 protected static final String NEW_LINE = "\n\n"; 20 protected static final String NEW_LINE = "\n\n";
21 - protected static final String UUID_WIKI_LINK = "[time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address%29) "; 21 + protected static final String UUID_WIKI_LINK = "[time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)). ";
22 protected static final int DEFAULT_PAGE_SIZE = 1000; 22 protected static final int DEFAULT_PAGE_SIZE = 1000;
23 protected static final String ENTITY_TYPE = "entityType"; 23 protected static final String ENTITY_TYPE = "entityType";
24 protected static final String CUSTOMER_ID = "customerId"; 24 protected static final String CUSTOMER_ID = "customerId";
@@ -60,6 +60,7 @@ import static org.thingsboard.server.controller.ControllerConstants.SORT_ORDER_D @@ -60,6 +60,7 @@ import static org.thingsboard.server.controller.ControllerConstants.SORT_ORDER_D
60 import static org.thingsboard.server.controller.ControllerConstants.SORT_PROPERTY_DESCRIPTION; 60 import static org.thingsboard.server.controller.ControllerConstants.SORT_PROPERTY_DESCRIPTION;
61 import static org.thingsboard.server.controller.ControllerConstants.TENANT_AUTHORITY_PARAGRAPH; 61 import static org.thingsboard.server.controller.ControllerConstants.TENANT_AUTHORITY_PARAGRAPH;
62 import static org.thingsboard.server.controller.ControllerConstants.TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH; 62 import static org.thingsboard.server.controller.ControllerConstants.TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH;
  63 +import static org.thingsboard.server.controller.ControllerConstants.UUID_WIKI_LINK;
63 64
64 @RestController 65 @RestController
65 @TbCoreComponent 66 @TbCoreComponent
@@ -136,7 +137,7 @@ public class CustomerController extends BaseController { @@ -136,7 +137,7 @@ public class CustomerController extends BaseController {
136 } 137 }
137 138
138 @ApiOperation(value = "Create or update Customer (saveCustomer)", 139 @ApiOperation(value = "Create or update Customer (saveCustomer)",
139 - notes = "Creates or Updates the Customer. When creating customer, platform generates Customer Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address) " + 140 + notes = "Creates or Updates the Customer. When creating customer, platform generates Customer Id as " + UUID_WIKI_LINK +
140 "The newly created Customer Id will be present in the response. " + 141 "The newly created Customer Id will be present in the response. " +
141 "Specify existing Customer Id to update the Customer. " + 142 "Specify existing Customer Id to update the Customer. " +
142 "Referencing non-existing Customer Id will cause 'Not Found' error." + TENANT_AUTHORITY_PARAGRAPH) 143 "Referencing non-existing Customer Id will cause 'Not Found' error." + TENANT_AUTHORITY_PARAGRAPH)
@@ -86,6 +86,7 @@ import static org.thingsboard.server.controller.ControllerConstants.TENANT_AUTHO @@ -86,6 +86,7 @@ import static org.thingsboard.server.controller.ControllerConstants.TENANT_AUTHO
86 import static org.thingsboard.server.controller.ControllerConstants.TENANT_ID; 86 import static org.thingsboard.server.controller.ControllerConstants.TENANT_ID;
87 import static org.thingsboard.server.controller.ControllerConstants.TENANT_ID_PARAM_DESCRIPTION; 87 import static org.thingsboard.server.controller.ControllerConstants.TENANT_ID_PARAM_DESCRIPTION;
88 import static org.thingsboard.server.controller.ControllerConstants.TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH; 88 import static org.thingsboard.server.controller.ControllerConstants.TENANT_OR_CUSTOMER_AUTHORITY_PARAGRAPH;
  89 +import static org.thingsboard.server.controller.ControllerConstants.UUID_WIKI_LINK;
89 90
90 @RestController 91 @RestController
91 @TbCoreComponent 92 @TbCoreComponent
@@ -166,7 +167,7 @@ public class DashboardController extends BaseController { @@ -166,7 +167,7 @@ public class DashboardController extends BaseController {
166 } 167 }
167 168
168 @ApiOperation(value = "Create Or Update Dashboard (saveDashboard)", 169 @ApiOperation(value = "Create Or Update Dashboard (saveDashboard)",
169 - notes = "Create or update the Dashboard. When creating dashboard, platform generates Dashboard Id as [time-based UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_1_(date-time_and_MAC_address)." + 170 + notes = "Create or update the Dashboard. When creating dashboard, platform generates Dashboard Id as " + UUID_WIKI_LINK +
170 "The newly created Dashboard id will be present in the response. " + 171 "The newly created Dashboard id will be present in the response. " +
171 "Specify existing Dashboard id to update the dashboard. " + 172 "Specify existing Dashboard id to update the dashboard. " +
172 "Referencing non-existing dashboard Id will cause 'Not Found' error. " + 173 "Referencing non-existing dashboard Id will cause 'Not Found' error. " +