Skip to content

Commit 06c98bb

Browse files
akshitjoshiiGMishx
authored andcommitted
fix(Project): LicenseClearing count to follow camelCasing
Signed-off-by: Akshit Joshi <akshit.joshi@siemens-healthineers.com>
1 parent e9874d9 commit 06c98bb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rest/resource-server/src/main/java/org/eclipse/sw360/rest/resourceserver/project/ProjectController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,8 +2951,8 @@ public void getlicenseClearingCount(
29512951
int approvedCount = clearingInfo.approved;
29522952
try {
29532953
JsonObject row = new JsonObject();
2954-
row.addProperty("Release Count", releaseCount);
2955-
row.addProperty("Approved Count", approvedCount);
2954+
row.addProperty("releaseCount", releaseCount);
2955+
row.addProperty("approvedCount", approvedCount);
29562956
response.getWriter().write(row.toString());
29572957
} catch (IOException e) {
29582958
throw new SW360Exception(e.getMessage());
@@ -2985,7 +2985,7 @@ public void getBatchLicenseClearingCount(
29852985
int approvedCount = clearingInfo.approved;
29862986

29872987
JsonObject row = new JsonObject();
2988-
row.addProperty("totalCount", releaseCount);
2988+
row.addProperty("releaseCount", releaseCount);
29892989
row.addProperty("approvedCount", approvedCount);
29902990
result.add(proj.getId(), row);
29912991
}

rest/resource-server/src/test/java/org/eclipse/sw360/rest/resourceserver/restdocs/ProjectSpecTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,8 +2472,8 @@ public void should_document_get_license_clearing_information() throws Exception
24722472
.andExpect(status().isOk())
24732473
.andDo(this.documentationHandler.document(
24742474
responseFields(
2475-
fieldWithPath("Release Count").description("Total count of releases of a project including sub-projects releases"),
2476-
fieldWithPath("Approved Count").description("Approved license clearing state releases")
2475+
fieldWithPath("releaseCount").description("Total count of releases of a project including sub-projects releases"),
2476+
fieldWithPath("approvedCount").description("Approved license clearing state releases")
24772477
)));
24782478
}
24792479

0 commit comments

Comments
 (0)