Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
catalog.genesys-pgr.org
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Genesys PGR
Genesys Catalog
catalog.genesys-pgr.org
Commits
d77ec4ef
Commit
d77ec4ef
authored
Nov 01, 2018
by
Matija Obreza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: Vocabulary API endpoints moved
parent
571e1eaa
Pipeline
#7468
passed with stages
in 6 minutes and 18 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
src/service/VocabularyService.ts
src/service/VocabularyService.ts
+13
-13
No files found.
src/service/VocabularyService.ts
View file @
d77ec4ef
...
...
@@ -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
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment