|
7 | 7 |
|
8 | 8 | import static com.google.common.base.Strings.isNullOrEmpty;
|
9 | 9 | import static org.eclipse.sw360.datahandler.common.SW360Constants.CONTENT_TYPE_OPENXML_SPREADSHEET;
|
| 10 | +import static org.eclipse.sw360.datahandler.common.SW360Constants.JSON_FILE_EXTENSION; |
10 | 11 | import static org.eclipse.sw360.datahandler.common.SW360Constants.XML_FILE_EXTENSION;
|
11 | 12 | import static org.springframework.hateoas.server.mvc.WebMvcLinkBuilder.linkTo;
|
12 | 13 |
|
@@ -103,7 +104,7 @@ public void getProjectReport(
|
103 | 104 | @RequestParam(value = "externalIds", required = false, defaultValue = "") String externalIds,
|
104 | 105 | @Parameter(description = "Generate report for only current project or with Sub projects. Can be supplied with modules [" + LICENSE_INFO + ", " + EXPORT_CREATE_PROJ_CLEARING_REPORT + "]")
|
105 | 106 | @RequestParam(value = "withSubProject", required = false, defaultValue = "false") boolean withSubProject,
|
106 |
| - @Parameter(description = "Type of SBOM file extention") |
| 107 | + @Parameter(description = "Type of SBOM file", schema = @Schema(allowableValues = {XML_FILE_EXTENSION, JSON_FILE_EXTENSION})) |
107 | 108 | @RequestParam(value = "bomType", required = false) String bomType,
|
108 | 109 | HttpServletRequest request,
|
109 | 110 | HttpServletResponse response
|
@@ -383,7 +384,6 @@ private String getBaseUrl(HttpServletRequest request) {
|
383 | 384 | String ctx = request.getContextPath();
|
384 | 385 | return url.substring(0, url.length() - uri.length() + ctx.length()) + "/";
|
385 | 386 | }
|
386 |
| - |
387 | 387 |
|
388 | 388 | private void exportSBOM(
|
389 | 389 | HttpServletResponse response, User sw360User, String module, String projectId,
|
|
0 commit comments