Skip to content

Commit 862ab39

Browse files
authored
Merge pull request #13044 from AnuGayan/master-4.5-rc1
Fix governance not working issue in API version create
2 parents 47f75c3 + 3c91d10 commit 862ab39

File tree

1 file changed

+2
-0
lines changed
  • components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/impl

1 file changed

+2
-0
lines changed

Diff for: components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/impl/ApisApiServiceImpl.java

+2
Original file line numberDiff line numberDiff line change
@@ -3740,6 +3740,8 @@ public Response createNewAPIVersion(String newVersion, String apiId, Boolean def
37403740
//This URI used to set the location header of the POST response
37413741
newVersionedApiUri =
37423742
new URI(RestApiConstants.RESOURCE_PATH_APIS + "/" + newVersionedApi.getId());
3743+
PublisherCommonUtils.checkGovernanceComplianceAsync(newVersionedApi.getId(), APIMGovernableState.API_CREATE,
3744+
ArtifactType.API, organization);
37433745
return Response.created(newVersionedApiUri).entity(newVersionedApi).build();
37443746
} catch (APIManagementException e) {
37453747
if (isAuthorizationFailure(e)) {

0 commit comments

Comments
 (0)