Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DTSRD-2137. Update SRA Id #1668

Open
wants to merge 73 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 64 commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
db90255
Upgrading perftest branch to V16 and adding subnet_suffix
SabinaHMCTS Dec 11, 2023
530bf25
Update name for an organisation moving code to controller
SabinaHMCTS Feb 20, 2024
0a6934f
Update name for an organisation adding test cases
SabinaHMCTS Feb 20, 2024
c93a0f8
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
c163fbf
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
4bf43e3
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Feb 21, 2024
8743c98
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
9ab2dfa
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
379ba0b
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
f6ce243
Update name for an organisation adding test cases
SabinaHMCTS Feb 21, 2024
df887a5
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Feb 27, 2024
570432d
Update OrganisationCreationRequestValidatorTest.java
SabinaHMCTS Feb 27, 2024
9927c5e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS Feb 27, 2024
f6a762a
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 27, 2024
1029f2c
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 27, 2024
0afe4d2
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
dafd810
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
3cb3dbd
Update name sra for an organisation adding test cases
SabinaHMCTS Feb 29, 2024
b8e0323
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Mar 12, 2024
76e261c
fixing review comments
SabinaHMCTS Mar 12, 2024
88e1cff
fixing review comments
SabinaHMCTS Mar 13, 2024
6edef7d
fixing review comments
SabinaHMCTS Mar 13, 2024
5e99427
fixing review comments
SabinaHMCTS Mar 13, 2024
809444f
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Mar 19, 2024
357d65f
Update name sra for an organisation adding test cases
SabinaHMCTS Mar 20, 2024
fd295ab
Update name sra for an organisation adding test cases
SabinaHMCTS Mar 20, 2024
5273b65
Merge branch 'master' into DTSRD-2136
SabinaHMCTS May 1, 2024
177e806
Merge branch 'master' into DTSRD-2136
SabinaHMCTS May 9, 2024
8dc916e
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS May 14, 2024
94b25b5
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS May 14, 2024
0ae9a03
Update OrganisationServiceImpl.java
SabinaHMCTS May 14, 2024
dbefdbb
update admin unit tests
SabinaHMCTS Jun 11, 2024
31d9f06
update admin unit tests
SabinaHMCTS Jun 11, 2024
1a96311
update functional tests
SabinaHMCTS Aug 23, 2024
ed30490
Update OrganisationServiceImpl.java
SabinaHMCTS Aug 27, 2024
1587540
Merge branch 'master' into DTSRD-2136
SabinaHMCTS Aug 27, 2024
76a321d
Update OrganisationInternalController.java
SabinaHMCTS Aug 27, 2024
69971f4
Update OrganisationServiceImpl.java
SabinaHMCTS Aug 27, 2024
7f82f30
Update ProfessionalInternalUserFunctionalTest.java
SabinaHMCTS Aug 29, 2024
f6bc99b
Update UpdateOrgNameSraIdIntegrationTest.java
SabinaHMCTS Aug 29, 2024
dc30a32
Fixing build
SabinaHMCTS Sep 2, 2024
437cdd9
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 2, 2024
9279e00
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
2792daf
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
35133bf
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 3, 2024
f2d47c8
endpoint to save SraId
SabinaHMCTS Sep 3, 2024
b79f88a
endpoint to save SraId
SabinaHMCTS Sep 3, 2024
770c6ca
endpoint to save SraId
SabinaHMCTS Sep 3, 2024
8e2edd7
endpoint to save SraId
SabinaHMCTS Sep 3, 2024
73b166c
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 4, 2024
3fef26e
Changing endpoint to only update Organisation Name
SabinaHMCTS Sep 4, 2024
c85c293
endpoint to save SraId moved to v2
SabinaHMCTS Sep 5, 2024
70a0726
endpoint to save SraId moved to v2
SabinaHMCTS Sep 5, 2024
6e5a4aa
endpoint to save SraId moved to v2
SabinaHMCTS Sep 5, 2024
bd190b3
endpoint to save SraId moved to v2
SabinaHMCTS Sep 5, 2024
7396023
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
772ce63
Merge branch 'master' into DTSRD-2137-1
SabinaHMCTS Sep 6, 2024
deb92fd
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
e3f9d83
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
f3450bb
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
7f427c5
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
838ac3d
Changes to fix review comments
SabinaHMCTS Sep 6, 2024
9f4bcf2
fixing last update
SabinaHMCTS Sep 12, 2024
78046a4
fixing review comments according to DTSRD-2136
SabinaHMCTS Sep 12, 2024
c1d7c94
made c hanges to endpoint to accept multiple requests in line with DT…
SabinaHMCTS Sep 19, 2024
967c9e1
made c hanges to endpoint to accept multiple requests in line with DT…
SabinaHMCTS Sep 19, 2024
8641e45
Merge branch 'master' into DTSRD-2137-1
SabinaHMCTS Sep 19, 2024
f290893
made changes to endpoint to accept multiple requests in line with DTS…
SabinaHMCTS Sep 20, 2024
986835e
made changes to endpoint to accept multiple requests in line with DTS…
SabinaHMCTS Sep 20, 2024
31b4ad8
made changes to endpoint to accept multiple requests in line with DTS…
SabinaHMCTS Sep 20, 2024
b951436
fixing build
SabinaHMCTS Sep 23, 2024
6a0e047
fixing build
SabinaHMCTS Sep 23, 2024
0c875e3
Update OrganisationInternalControllerV2.java
SabinaHMCTS Sep 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
import uk.gov.hmcts.reform.lib.util.serenity5.SerenityTest;
import uk.gov.hmcts.reform.professionalapi.controller.request.NewUserCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationSraUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UsersInOrganisationsByOrganisationIdentifiersRequest;
import uk.gov.hmcts.reform.professionalapi.controller.response.UsersInOrganisationsByOrganisationIdentifiersResponse;
import uk.gov.hmcts.reform.professionalapi.domain.OrganisationStatus;
Expand All @@ -22,17 +24,23 @@
import uk.gov.hmcts.reform.professionalapi.util.OrganisationProfileIdConstants;
import uk.gov.hmcts.reform.professionalapi.util.ToggleEnable;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import static org.apache.commons.lang.RandomStringUtils.randomAlphabetic;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.springframework.http.HttpStatus.NOT_FOUND;
import static org.springframework.http.HttpStatus.NO_CONTENT;
import static org.springframework.http.HttpStatus.OK;
import static uk.gov.hmcts.reform.professionalapi.client.ProfessionalApiClient.createOrganisationRequest;
import static uk.gov.hmcts.reform.professionalapi.client.ProfessionalApiClient.createOrganisationRequestForV2;
import static uk.gov.hmcts.reform.professionalapi.util.DateUtils.convertStringToLocalDate;
import static uk.gov.hmcts.reform.professionalapi.util.DateUtils.generateRandomDate;
Expand Down Expand Up @@ -529,4 +537,72 @@ private void verifyOrganisationDetailsBySinceDateV2(Map<String, Object> response
});
}

}

@Test
void updateOrganisationSraIdShouldReturnSuccess() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify test case to update multiple sra ids

log.info("updateOrganisationSraIdShouldReturnSuccess :: STARTED");
String updatedSra = randomAlphabetic(7);
String organisationIdentifier = getActiveOrganisationId();
//create request to update sraid
OrganisationSraUpdateRequest organisationSraUpdateRequest =
new OrganisationSraUpdateRequest(updatedSra);

//call endpoint to update name as 'updatedsraid'
Response orgUpdatedSraResponse = professionalApiClient.updatesOrganisationSra(
organisationSraUpdateRequest,organisationIdentifier, OK);
assertNotNull(orgUpdatedSraResponse);
assertThat(orgUpdatedSraResponse.statusCode()).isEqualTo(200);

//retrieve saved organisation by id
var orgResponse = professionalApiClient.retrieveOrganisationDetailsForV2(organisationIdentifier, hmctsAdmin,
OK);
assertThat(orgResponse).isNotNull();
assertNotNull(orgResponse.get("sraId"));
assertThat(orgResponse.get("sraId").toString()).isEqualTo(updatedSra);

List organisationAttributes = (List)orgResponse.get("orgAttributes");
assertThat(organisationAttributes).isNotNull();

LinkedHashMap<String, Object> attr = (LinkedHashMap)organisationAttributes.get(0);
assertThat(attr).isNotNull();
assertThat(attr.get("key")).isEqualTo("regulators-0");
assertThat(attr.get("value").toString()).isEqualTo(
"{\"regulatorType\":\"Solicitor Regulation Authority "
+ "(SRA)\",\"organisationRegistrationNumber\":\"" + updatedSra + "\"}");

LocalDateTime updatedDate = LocalDateTime.parse(orgResponse.get("lastUpdated").toString());
assertThat(updatedDate.toLocalDate()).isEqualTo(LocalDate.now());

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add delete organisation call

log.info("updateOrganisationSraIdShouldReturnSuccess :: END");
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test case for partial success sra ids update

@Test
void updateOrganisationSraIdShouldReturnFailureIfNoSraId() {
log.info("updateOrganisationNameShouldReturnFailureIfNoName :: STARTED");
String organisationIdentifier = getActiveOrganisationId();
OrganisationSraUpdateRequest organisationSraUpdateRequest =
new OrganisationSraUpdateRequest("");

Response orgUpdatedSraIdResponse = professionalApiClient.updatesOrganisationSra(
organisationSraUpdateRequest,organisationIdentifier, BAD_REQUEST);

assertNotNull(orgUpdatedSraIdResponse);
assertThat(orgUpdatedSraIdResponse.statusCode()).isEqualTo(400);

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add assertion for error message

log.info("updateOrganisationNameShouldReturnFailureIfNoName :: END");
}

private String getActiveOrganisationId() {
Map<String, Object> response = professionalApiClient.createOrganisation();
String organisationIdentifier = (String) response.get("organisationIdentifier");
assertThat(organisationIdentifier).isNotEmpty();

OrganisationCreationRequest organisationCreationRequest = createOrganisationRequest().status("ACTIVE").build();

professionalApiClient.updateOrganisation(organisationCreationRequest, hmctsAdmin, organisationIdentifier,OK);

return organisationIdentifier;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.springframework.http.HttpStatus.BAD_REQUEST;
import static org.springframework.http.HttpStatus.CONFLICT;
import static org.springframework.http.HttpStatus.FORBIDDEN;
import static org.springframework.http.HttpStatus.NOT_FOUND;
import static org.springframework.http.HttpStatus.NO_CONTENT;
Expand Down Expand Up @@ -245,7 +246,7 @@ public void inviteUserWithDuplicateUserShouldReturnConflict(NewUserCreationReque
NewUserCreationRequest newUserCreationRequest = professionalApiClient.createNewUserRequest();
newUserCreationRequest.setEmail(existingUserCreationRequest.getEmail());
Map<String, Object> newUserResponse = professionalApiClient.addNewUserToAnOrganisation(intActiveOrgId,
hmctsAdmin, newUserCreationRequest, HttpStatus.CONFLICT);
hmctsAdmin, newUserCreationRequest, CONFLICT);
assertThat((String) newUserResponse.get("errorDescription")).contains("409 User already exists");
log.info("inviteUserWithDuplicateUserShouldReturnConflict :: END");
}
Expand Down Expand Up @@ -1231,4 +1232,5 @@ private static List<Map<String, Object>> sortByValue(final List<Map<String, Obje
.sorted(Comparator.comparing(map -> (String) map.get(key)))
.collect(Collectors.toList());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationSraUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.PbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UpdatePbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UserCreationRequest;
Expand Down Expand Up @@ -1315,6 +1316,24 @@ public void updateOrganisation(OrganisationCreationRequest organisationCreationR
.statusCode(expectedStatus.value());
}

public Response updatesOrganisationSra(OrganisationSraUpdateRequest organisationSraUpdateRequest,
String organisationIdentifier, HttpStatus expectedStatus) {

Response response = getMultipleAuthHeadersInternal()
.body(organisationSraUpdateRequest)
.put("/refdata/internal/v2/organisations/" + organisationIdentifier + "/sra")
.andReturn();

log.info("{}:: Update organisation SraId response: {}",
loggingComponentName, response.getStatusCode());

response.then()
.assertThat()
.statusCode(expectedStatus.value());

return response;
}

public void updateOrganisationToReview(String organisationIdentifier, String statusMessage, String role) {

OrganisationCreationRequest organisationCreationRequest = createOrganisationRequest()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
package uk.gov.hmcts.reform.professionalapi;

import org.junit.jupiter.api.Test;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationSraUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.util.AuthorizationEnabledIntegrationTest;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import static org.apache.commons.lang.RandomStringUtils.randomAlphabetic;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertNotNull;


class UpdateOrgSraIntegrationTest extends AuthorizationEnabledIntegrationTest {


@Test
void update_sra_of_an_active_organisation_with_prd_admin_role_should_return_200() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

modify test case to update multiple sra ids


String orgIdentifier = getOrganisationId();
String sraId = randomAlphabetic(7);
OrganisationSraUpdateRequest organisationSraUpdateRequest =
new OrganisationSraUpdateRequest(sraId);
Map<String, Object> orgResponse = professionalReferenceDataClient
.updateOrgSra(organisationSraUpdateRequest,
hmctsAdmin,orgIdentifier);
assertThat(orgResponse).isNotNull();
assertThat(orgResponse.get("http_status")).isEqualTo(200);

Map<String, Object> responseBody = professionalReferenceDataClient
.retrieveSingleOrganisationForV2Api(orgIdentifier,hmctsAdmin);
assertThat(responseBody).isNotNull();
assertNotNull(responseBody.get("sraId"));
assertThat(responseBody.get("sraId").toString()).isEqualTo(sraId);

List organisationAttributes = (List)responseBody.get("orgAttributes");
assertThat(organisationAttributes).isNotNull();

LinkedHashMap<String, Object> attr = (LinkedHashMap)organisationAttributes.get(0);
assertThat(attr).isNotNull();
assertThat(attr.get("key")).isEqualTo("regulators-0");
assertThat(attr.get("value").toString()).isEqualTo(
"{\"regulatorType\":\"Solicitor Regulation Authority "
+ "(SRA)\",\"organisationRegistrationNumber\":\"" + sraId + "\"}");

LocalDateTime updatedDate = LocalDateTime.parse(responseBody.get("lastUpdated").toString());
assertThat(updatedDate.toLocalDate()).isEqualTo(LocalDate.now());
}

@Test
void update_sra_with_bad_request_should_return_400() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use Junit 5 to parameterise all error scenarios in test case similar like update name error tests

Map<String, Object> updateResponse = professionalReferenceDataClient
.updateOrgSra(null, hmctsAdmin,getOrganisationId());

assertThat(updateResponse).containsEntry("http_status", "400");
assertThat(updateResponse.get("response_body").toString())
.contains("Required request body is missing:");
}

@Test
void update_sra_with_bad_request_OrgId_missing_should_return_400() {
Map<String, Object> updateResponse = professionalReferenceDataClient
.updateOrgSra(new OrganisationSraUpdateRequest("some-SraId"), hmctsAdmin,null);

assertThat(updateResponse).containsEntry("http_status", "400");
assertThat(updateResponse.get("response_body").toString())
.contains("The given organisationIdentifier must be 7 Alphanumeric Characters");

}

@Test
void update_sra_with_invalid_name_should_return_400() {

OrganisationSraUpdateRequest organisationSraUpdateRequest =
new OrganisationSraUpdateRequest("");

Map<String, Object> updateResponse = professionalReferenceDataClient
.updateOrgSra(organisationSraUpdateRequest,
hmctsAdmin,getOrganisationId());

assertThat(updateResponse).containsEntry("http_status", "400");
assertThat(updateResponse.get("response_body").toString()).contains("SRA Id is required");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for error message you need to use the changes made in ExceptionMapper class for update org name, but you have to wait until those changes are merged in master branch then only you can rebase this branch with master and assert expected error messages.


}

@Test
void update_sra_with_blank_name_should_return_400() {
OrganisationSraUpdateRequest organisationSraUpdateRequest =
new OrganisationSraUpdateRequest(" ");

Map<String, Object> updateResponse = professionalReferenceDataClient
.updateOrgSra(organisationSraUpdateRequest,
hmctsAdmin,getOrganisationId());

assertThat(updateResponse).containsEntry("http_status", "400");
assertThat(updateResponse.get("response_body").toString()).contains("SRA Id is required");

}


private String getOrganisationId() {
String organisationIdentifier = createOrganisationRequest();
updateOrganisation(organisationIdentifier, hmctsAdmin, "ACTIVE");

return organisationIdentifier;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add test case for partial success sra ids update


}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationByProfileIdsRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationOtherOrgsCreationRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.OrganisationSraUpdateRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.PbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UpdatePbaRequest;
import uk.gov.hmcts.reform.professionalapi.controller.request.UsersInOrganisationsByOrganisationIdentifiersRequest;
Expand Down Expand Up @@ -1022,6 +1023,31 @@ public Map<String, Object> findOrganisationsByUserId(String userId, String role)
return getResponse(responseEntity);
}



public Map<String, Object> updateOrgSra(
OrganisationSraUpdateRequest organisationSraUpdateRequest, String role, String organisationIdentifier) {

ResponseEntity<Map> responseEntity = null;
String urlPath = "http://localhost:" + prdApiPort + APP_INT_V2_BASE_PATH
+ "/" + organisationIdentifier + "/sra";
try {
HttpEntity<OrganisationSraUpdateRequest> requestEntity = new HttpEntity<>(organisationSraUpdateRequest,
getMultipleAuthHeaders(role));
responseEntity = restTemplate.exchange(urlPath, HttpMethod.PUT, requestEntity, Map.class);
} catch (RestClientResponseException ex) {
HashMap<String, Object> statusAndBody = new HashMap<>(2);
statusAndBody.put("http_status", String.valueOf(ex.getRawStatusCode()));
statusAndBody.put("response_body", ex.getResponseBodyAsString());
return statusAndBody;
}

Map<String, Object> organisationResponse = new HashMap<>();
organisationResponse.put("http_status", responseEntity.getStatusCodeValue());
organisationResponse.put("response_body", responseEntity.getBody());
return organisationResponse;
}

public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers(
UsersInOrganisationsByOrganisationIdentifiersRequest request, Integer pageSize,
UUID searchAfterUser, UUID searchAfterOrganisation) {
Expand All @@ -1038,5 +1064,6 @@ public Map<String, Object> retrieveUsersInOrganisationsByOrganisationIdentifiers
}
String uriPath = sb.toString();
return postRequest(uriPath, request, null, null);

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ public ResponseEntity<OrganisationEntityResponse> retrieveOrganisationByUserId(
return organisationService.retrieveOrganisationByUserId(userId);
}


@Operation(
summary = "Retrieves Organisations by Organisation Profile IDs",
description = "**Bearer token not required to access API. Only a valid s2s token**",
Expand Down Expand Up @@ -745,4 +746,5 @@ public ResponseEntity<Object> retrieveOrganisationsByProfileIds(
.status(HttpStatus.OK)
.body(response);
}

}
Loading