From 3d356fcb7df413491d28c223c224658426f827cf Mon Sep 17 00:00:00 2001 From: Keerthi B L Date: Fri, 21 Jun 2024 13:48:44 +0530 Subject: [PATCH] feat(rest) : Export Project Create Clearing Request Signed-off-by: Keerthi B L --- .../src/docs/asciidoc/projects.adoc | 13 +++++++++++ .../report/SW360ReportController.java | 15 ++++++++++++- .../restdocs/ProjectSpecTest.java | 22 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/rest/resource-server/src/docs/asciidoc/projects.adoc b/rest/resource-server/src/docs/asciidoc/projects.adoc index dd9f23f3d1..4c457e021b 100644 --- a/rest/resource-server/src/docs/asciidoc/projects.adoc +++ b/rest/resource-server/src/docs/asciidoc/projects.adoc @@ -943,3 +943,16 @@ include::{snippets}/should_document_create_clearing_request/curl-request.adoc[] ===== Example response include::{snippets}/should_document_create_clearing_request/http-response.adoc[] +[[resources-project-get-download-project-clearing-report]] +==== Export Create Project Clearing Report + +A `GET` request is used to export Create Project Clearing Report. + +===== Request parameter +include::{snippets}/should_document_get_export_project_create_clearing_request/request-parameters.adoc[] + +===== Example request +include::{snippets}/should_document_get_export_project_create_clearing_request/curl-request.adoc[] + +===== Example response +include::{snippets}/should_document_get_export_project_create_clearing_request/http-response.adoc[] \ No newline at end of file diff --git a/rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/report/SW360ReportController.java b/rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/report/SW360ReportController.java index 35974ce72f..d5c1ed7909 100644 --- a/rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/report/SW360ReportController.java +++ b/rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/report/SW360ReportController.java @@ -51,6 +51,7 @@ public class SW360ReportController implements RepresentationModelProcessor`"), + parameterWithName("variant").description("The possible values for variants are ``"), + parameterWithName("externalIds").description("The external Ids of the project"), + parameterWithName("module").description("module possible values are ``") + ))); + } + @Test public void should_document_import_cyclonedx() throws Exception { MockMultipartFile file = new MockMultipartFile("file","file=@/sampleBOM.xml".getBytes());