Skip to content

Commit

Permalink
Setting isDefaultVersion true a new API Product.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiranyaKavishani committed Oct 18, 2023
1 parent 9ff48c9 commit 6e3b934
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1841,7 +1841,8 @@ public static APIProduct addAPIProductWithGeneratedSwaggerDefinition(APIProductD
apiProductDTO.setApiKeyHeader(APIConstants.API_KEY_HEADER_DEFAULT);
}

apiProductDTO.setIsDefaultVersion(false);
//isDefaultVersion is true for a new API Product.
apiProductDTO.setIsDefaultVersion(true);

//Remove the /{version} from the context.
if (context.endsWith("/" + RestApiConstants.API_VERSION_PARAM)) {
Expand Down

0 comments on commit 6e3b934

Please sign in to comment.