use of com.mercedesbenz.sechub.sharedkernel.usecases.admin.project.UseCaseUpdateProjectMetaData in project sechub by mercedes-benz.
the class ProjectUpdateAdministrationRestController method updateProjectMetaData.
@UseCaseUpdateProjectMetaData(@Step(number = 1, name = "Rest call", description = "MetaData will be updated", needsRestDoc = true))
@RequestMapping(path = AdministrationAPIConstants.API_UPDATE_PROJECT_METADATA, method = RequestMethod.POST, produces = { MediaType.APPLICATION_JSON_VALUE })
public void updateProjectMetaData(@Validated @RequestBody ProjectJsonInput input, @PathVariable(name = "projectId") String projectId) {
/* @formatter:on */
Optional<ProjectMetaData> projectMetaData = input.getMetaData();
if (!projectMetaData.isPresent()) {
return;
}
ProjectMetaData metaData = projectMetaData.get();
updateProjectMetaDataService.updateProjectMetaData(projectId, metaData);
}
Aggregations