Colour property in Mgmt API response for DS/SM type (#1174)
* Update name SP to hawkbit in api guide adocs Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io> * fix javadoc class descriptions of existing resource/api classes Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io> * Add color property to api response of ds/sw type Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io> * Add color property to sw type test data & adapt rest docu Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io> * Add missing property description for "colour" and "deleted" Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io> * fix review findings Signed-off-by: Natalia Kislicyn <natalia.kislicyn@bosch.io>
This commit is contained in:
@@ -83,6 +83,7 @@ final class MgmtDistributionSetTypeMapper {
|
||||
result.setKey(type.getKey());
|
||||
result.setModuleId(type.getId());
|
||||
result.setDeleted(type.isDeleted());
|
||||
result.setColour(type.getColour());
|
||||
|
||||
result.add(linkTo(methodOn(MgmtDistributionSetTypeRestApi.class).getDistributionSetType(result.getModuleId()))
|
||||
.withSelfRel());
|
||||
|
||||
@@ -25,9 +25,7 @@ import org.eclipse.hawkbit.repository.OffsetBasedPageRequest;
|
||||
import org.eclipse.hawkbit.repository.SoftwareModuleTypeManagement;
|
||||
import org.eclipse.hawkbit.repository.exception.EntityNotFoundException;
|
||||
import org.eclipse.hawkbit.repository.exception.SoftwareModuleTypeNotInDistributionSetTypeException;
|
||||
import org.eclipse.hawkbit.repository.model.Artifact;
|
||||
import org.eclipse.hawkbit.repository.model.DistributionSetType;
|
||||
import org.eclipse.hawkbit.repository.model.SoftwareModule;
|
||||
import org.eclipse.hawkbit.repository.model.SoftwareModuleType;
|
||||
import org.springframework.data.domain.Page;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
@@ -41,8 +39,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* REST Resource handling for {@link SoftwareModule} and related
|
||||
* {@link Artifact} CRUD operations.
|
||||
* REST Resource handling for {@link DistributionSetType} CRUD operations.
|
||||
*/
|
||||
@RestController
|
||||
public class MgmtDistributionSetTypeResource implements MgmtDistributionSetTypeRestApi {
|
||||
|
||||
@@ -69,6 +69,7 @@ final class MgmtSoftwareModuleTypeMapper {
|
||||
result.setMaxAssignments(type.getMaxAssignments());
|
||||
result.setModuleId(type.getId());
|
||||
result.setDeleted(type.isDeleted());
|
||||
result.setColour(type.getColour());
|
||||
|
||||
result.add(linkTo(methodOn(MgmtSoftwareModuleTypeRestApi.class).getSoftwareModuleType(result.getModuleId()))
|
||||
.withSelfRel());
|
||||
|
||||
@@ -35,8 +35,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* REST Resource handling for {@link SoftwareModule} and related
|
||||
* {@link Artifact} CRUD operations.
|
||||
* REST Resource handling for {@link SoftwareModuleType} CRUD operations.
|
||||
*
|
||||
*/
|
||||
@RestController
|
||||
|
||||
Reference in New Issue
Block a user