Skip to content

Commit

Permalink
EMP-3684 Using http to access search services
Browse files Browse the repository at this point in the history
  • Loading branch information
AnaGciaSchz committed Mar 27, 2024
1 parent accfbec commit 40305f9
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/adapter/docker.adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,15 @@ function resolveEmpathyEndpoint(endpoint: DockerEndpoints, context: Record<strin
const endpointHost: string = empathyAPIHost ? empathyAPIHost : 'localhost:8080';
const endpointInstance: string = instance ? instance : 'imdb';
const empathyEndpoints: Record<DockerEndpoints, string> = {
search: `https://${endpointHost}/query/${endpointInstance}/search`,
popularSearches: `https://${endpointHost}/query/${endpointInstance}/empathize`,
recommendations: `https://${endpointHost}/query/${endpointInstance}/topclicked`,
nextQueries: `https://${endpointHost}/nextqueries/${endpointInstance}`,
querySuggestions: `https://${endpointHost}/query/${endpointInstance}/empathize`,
relatedTags: `https://${endpointHost}/relatedtags/${endpointInstance}`,
identifierResults: `https://${endpointHost}/query/${endpointInstance}/skusearch`,
semanticQueries: `https://${endpointHost}/semantics-api/search_single/${endpointInstance}`,
experienceControls: `https://${endpointHost}/config/v1/public/configs`
search: `http://${endpointHost}/query/${endpointInstance}/search`,
popularSearches: `http://${endpointHost}/query/${endpointInstance}/empathize`,
recommendations: `http://${endpointHost}/query/${endpointInstance}/topclicked`,
nextQueries: `http://${endpointHost}/nextqueries/${endpointInstance}`,
querySuggestions: `http://${endpointHost}/query/${endpointInstance}/empathize`,
relatedTags: `http://${endpointHost}/relatedtags/${endpointInstance}`,
identifierResults: `http://${endpointHost}/query/${endpointInstance}/skusearch`,
semanticQueries: `http://${endpointHost}/semantics-api/search_single/${endpointInstance}`,
experienceControls: `http://${endpointHost}/config/v1/public/configs`
};
return empathyEndpoints[endpoint];
}

0 comments on commit 40305f9

Please sign in to comment.