Commit d77ec4ef authored by Matija Obreza's avatar Matija Obreza

Fix: Vocabulary API endpoints moved

parent 571e1eaa
Pipeline #7468 passed with stages
in 6 minutes and 18 seconds
......@@ -9,10 +9,10 @@ import Vocabulary from 'model/vocabulary/Vocabulary';
import VocabularyFilter from 'model/vocabulary/VocabularyFilter';
import VocabularyTerm from 'model/vocabulary/VocabularyTerm';
const URL_AUTOCOMPLETE_LANGUAGE_TERM = `/api/v1/lang/autocomplete`;
const URL_UPDATE_LANGUAGE_VOCABULARY = `/api/v1/lang/update`;
const URL_AUTOCOMPLETE_LANGUAGE_TERM = `/api/v1/vocabulary/lang/autocomplete`;
const URL_UPDATE_LANGUAGE_VOCABULARY = `/api/v1/vocabulary/lang/update`;
const URL_UPDATE_ISO3166_VOCABULARY = `/api/v1/geo/update`;
const URL_GET_LANGUAGE_TERM = UrlTemplate.parse(`/api/v1/lang/{code}`);
const URL_GET_LANGUAGE_TERM = UrlTemplate.parse(`/api/v1/vocabulary/lang/{code}`);
const URL_CREATE = `/api/v1/vocabulary/create`;
const URL_LIST = `/api/v1/vocabulary/list`;
const URL_UPDATE_CONTROLLED_VOCABULARY = `/api/v1/vocabulary/update`;
......@@ -21,9 +21,9 @@ const URL_DELETE = UrlTemplate.parse(`/api/v1/vocabulary/{UUID},{version}`);
const URL_AUTOCOMPLETE_TERM = UrlTemplate.parse(`/api/v1/vocabulary/{UUID}/autocomplete`);
const URL_LIST_TERMS = UrlTemplate.parse(`/api/v1/vocabulary/{UUID}/terms`);
const URL_GET_TERM = UrlTemplate.parse(`/api/v1/vocabulary/{UUID}/{code}`);
const URL_AUTOCOMPLETE_WIEWS_TERM = `/api/v1/wiews/autocomplete`;
const URL_UPDATE_WIEWS_VOCABULARY = `/api/v1/wiews/update`;
const URL_GET_WIEWS_TERM = UrlTemplate.parse(`/api/v1/wiews/{code}`);
const URL_AUTOCOMPLETE_WIEWS_TERM = `/api/v1/vocabulary/wiews/autocomplete`;
const URL_UPDATE_WIEWS_VOCABULARY = `/api/v1/vocabulary/wiews/update`;
const URL_GET_WIEWS_TERM = UrlTemplate.parse(`/api/v1/vocabulary/wiews/{code}`);
/*
* Defined in Swagger as 'vocabulary'
......@@ -31,7 +31,7 @@ const URL_GET_WIEWS_TERM = UrlTemplate.parse(`/api/v1/wiews/{code}`);
class VocabularyService {
/**
* autocompleteLanguageTerm at /api/v1/lang/autocomplete
* autocompleteLanguageTerm at /api/v1/vocabulary/lang/autocomplete
*
* @param l l
*/
......@@ -52,7 +52,7 @@ class VocabularyService {
}
/**
* updateLanguageVocabulary at /api/v1/geo/update
* updateLanguageVocabulary at /api/v1/vocabulary/iso3166/update
*
*/
public static updateISO3166Vocabulary(): Promise<string> {
......@@ -69,7 +69,7 @@ class VocabularyService {
}
/**
* updateLanguageVocabulary at /api/v1/lang/update
* updateLanguageVocabulary at /api/v1/vocabulary/lang/update
*
*/
public static updateLanguageVocabulary(): Promise<string> {
......@@ -86,7 +86,7 @@ class VocabularyService {
}
/**
* getLanguageTerm at /api/v1/lang/{code}
* getLanguageTerm at /api/v1/vocabulary/lang/{code}
*
* @param code code
*/
......@@ -270,7 +270,7 @@ class VocabularyService {
}
/**
* autocompleteWiewsTerm at /api/v1/wiews/autocomplete
* autocompleteWiewsTerm at /api/v1/vocabulary/wiews/autocomplete
*
* @param term term
*/
......@@ -291,7 +291,7 @@ class VocabularyService {
}
/**
* updateWiewsVocabulary at /api/v1/wiews/update
* updateWiewsVocabulary at /api/v1/vocabulary/wiews/update
*
*/
public static updateWiewsVocabulary(): Promise<string> {
......@@ -308,7 +308,7 @@ class VocabularyService {
}
/**
* getWiewsTerm at /api/v1/wiews/{code}
* getWiewsTerm at /api/v1/vocabulary/wiews/{code}
*
* @param code code
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment