Skip to content

Commit

Permalink
Update v1 autocomplete endpoint (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Delerme committed Jul 16, 2019
1 parent d2676dc commit f7cc41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/search/autocompleteapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,12 @@ export default class AutoCompleteApi {

queryVertical (input, verticalKey, barKey) {
let request = new ApiRequest({
endpoint: '/v2/accounts/me/entities/autocomplete',
endpoint: '/v2/accounts/me/answers/autocomplete',
apiKey: this._apiKey,
version: this._version,
params: {
'input': input,
'answersKey': this._answersKey,
'experienceKey': verticalKey,
'barKey': barKey,
'locale': this._locale
Expand Down
3 changes: 2 additions & 1 deletion tests/ui/components/search/autocompleteapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ describe('querying and responding', () => {
});

describe('queryVertical', () => {
const expectedUrl = `${baseUrl}/entities/autocomplete`;
const expectedUrl = `${baseUrl}/answers/autocomplete`;
const expectedData = {
answersKey,
api_key: apiKey,
barKey,
experienceKey: verticalKey,
Expand Down

0 comments on commit f7cc41d

Please sign in to comment.