Refactor whitelabel update api method name to update from create

scopeMapAPILayer
Mohamed Rashd 3 years ago
parent b8a0ffe7c0
commit 743a12083b

@ -192,7 +192,7 @@ public interface WhiteLabelService {
"\n Server error occurred while creating white label theme.", "\n Server error occurred while creating white label theme.",
response = ErrorResponse.class) response = ErrorResponse.class)
}) })
Response createWhiteLabelTheme(WhiteLabelThemeCreateRequest whiteLabelThemeCreateRequest); Response updateWhiteLabelTheme(WhiteLabelThemeCreateRequest whiteLabelThemeCreateRequest);
@GET @GET
@ApiOperation( @ApiOperation(

@ -88,7 +88,7 @@ public class WhiteLabelServiceImpl implements WhiteLabelService {
@PUT @PUT
@Override @Override
public Response createWhiteLabelTheme(WhiteLabelThemeCreateRequest whiteLabelThemeCreateRequest) { public Response updateWhiteLabelTheme(WhiteLabelThemeCreateRequest whiteLabelThemeCreateRequest) {
RequestValidationUtil.validateWhiteLabelTheme(whiteLabelThemeCreateRequest); RequestValidationUtil.validateWhiteLabelTheme(whiteLabelThemeCreateRequest);
try { try {
WhiteLabelTheme createdWhiteLabelTheme = DeviceMgtAPIUtils.getWhiteLabelManagementService().updateWhiteLabelTheme(whiteLabelThemeCreateRequest); WhiteLabelTheme createdWhiteLabelTheme = DeviceMgtAPIUtils.getWhiteLabelManagementService().updateWhiteLabelTheme(whiteLabelThemeCreateRequest);

Loading…
Cancel
Save