Skip to content

Commit

Permalink
changed endpoint to marketplace-assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Thenujan-Nagaratnam committed Mar 23, 2024
1 parent da1fcc5 commit 8ef180e
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import org.wso2.carbon.apimgt.rest.api.store.v1.dto.MarketplaceAssistantApiCountResponseDTO;
import org.wso2.carbon.apimgt.rest.api.store.v1.dto.MarketplaceAssistantRequestDTO;
import org.wso2.carbon.apimgt.rest.api.store.v1.dto.MarketplaceAssistantResponseDTO;
import org.wso2.carbon.apimgt.rest.api.store.v1.AiApiService;
import org.wso2.carbon.apimgt.rest.api.store.v1.impl.AiApiServiceImpl;
import org.wso2.carbon.apimgt.rest.api.store.v1.MarketplaceAssistantApiService;
import org.wso2.carbon.apimgt.rest.api.store.v1.impl.MarketplaceAssistantApiServiceImpl;
import org.wso2.carbon.apimgt.api.APIManagementException;

import javax.ws.rs.*;
Expand All @@ -24,18 +24,18 @@
import java.util.Map;
import java.util.List;
import javax.validation.constraints.*;
@Path("/ai")
@Path("/marketplace-assistant")

@Api(description = "the ai API")
@Api(description = "the marketplace-assistant API")




public class AiApi {
public class MarketplaceAssistantApi {

@Context MessageContext securityContext;

AiApiService delegate = new AiApiServiceImpl();
MarketplaceAssistantApiService delegate = new MarketplaceAssistantApiServiceImpl();


@GET
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import javax.ws.rs.core.SecurityContext;


public interface AiApiService {
public interface MarketplaceAssistantApiService {
public Response getMarketplaceAssistantApiCount(MessageContext messageContext) throws APIManagementException;
public Response marketplaceAssistantExecute(MarketplaceAssistantRequestDTO marketplaceAssistantRequestDTO, MessageContext messageContext) throws APIManagementException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
import javax.ws.rs.core.SecurityContext;


public class AiApiServiceImpl implements AiApiService {
public class MarketplaceAssistantApiServiceImpl implements MarketplaceAssistantApiService {

private static final Log log = LogFactory.getLog(AiApiServiceImpl.class);

private static final Log log = LogFactory.getLog(MarketplaceAssistantApiServiceImpl.class);

private static MarketplaceAssistantConfigurationDto marketplaceAssistantConfigurationDto;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3655,7 +3655,7 @@ paths:
######################################################
# The "Marketplace Assistant Feature" resource APIs
######################################################
'/ai/api-count':
'/marketplace-assistant/api-count':

#-----------------------------------------------------
# Get No of apis in the VectorDB
Expand Down Expand Up @@ -3685,7 +3685,7 @@ paths:
Internal Server Error.
An error occurred while checking the health status of API Chat service.
'/ai/chat':
'/marketplace-assistant/chat':

#-----------------------------------------------------
# Chat with Marketplace Assistant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
org.wso2.carbon.apimgt.rest.api.store.v1.RecommendationsApi,
org.wso2.carbon.apimgt.rest.api.store.v1.KeyManagersApi,
org.wso2.carbon.apimgt.rest.api.store.v1.MeApi,
org.wso2.carbon.apimgt.rest.api.store.v1.WebhooksApi
org.wso2.carbon.apimgt.rest.api.store.v1.WebhooksApi,
org.wso2.carbon.apimgt.rest.api.store.v1.MarketplaceAssistantApi
</param-value>
</init-param>
<init-param>
Expand Down

0 comments on commit 8ef180e

Please sign in to comment.