Commit 7c4d491c authored by Maxym Borodenko's avatar Maxym Borodenko Committed by Matija Obreza

Obsolete API v0

parent 1ba480bc
Pipeline #7451 passed with stages
in 5 minutes and 7 seconds
......@@ -76,7 +76,7 @@ module.exports = {
}
if (p.startsWith('/uploads')) {
p = p.replace(/^\/uploads/, '/api/v0/repository/download');
p = p.replace(/^\/uploads/, '/api/v1/repository/download');
}
// If authorization header is not provided, use access_token from cookie
......
......@@ -3,23 +3,14 @@ const origin = typeof window !== 'undefined' ? window.location.origin : 'http://
export const API_ROOT = `${origin}/proxy`;
export const LOGIN_URL = `${API_ROOT}/oauth/token`;
export const LOGOUT_URL = `${API_ROOT}/api/v0/me/logout`;
export const LOGOUT_URL = `${API_ROOT}/api/v1/me/logout`;
export const CHECK_TOKEN_URL = `${API_ROOT}/oauth/check_token`;
export const VERIFY_GOOGLE_TOKEN_URL = `${API_ROOT}/google/verify-token`;
export const APIv0_BASE_URL = `${API_ROOT}/api/v0`;
export const APIv1_BASE_URL = `${API_ROOT}/api/v1`;
// Me API
const ME_API = `${APIv0_BASE_URL}/me`;
const ME_API = `${APIv1_BASE_URL}/me`;
export const GET_USER_PROFILE_URL = `${ME_API}/profile`;
export const CHANGE_USER_PASSWORD_URL = `${ME_API}/password`;
// Partner API
const PARTNER_API = `${APIv0_BASE_URL}/partner`;
export const GET_PARTNER_URL = `${PARTNER_API}`;
export const REMOVE_PARTNER_URL = `${PARTNER_API}`;
export const CREATE_PARTNER_URL = `${PARTNER_API}/create`;
export const UPDATE_PARTNER_URL = `${PARTNER_API}/update`;
export const LIST_PARTNER_URL = `${PARTNER_API}/list`;
export const REPOSITORY_DOWNLOADFILE_URL = `/proxy/uploads`;
......@@ -341,7 +341,7 @@ class DetailInfo extends React.Component<IDetailInfoProps, any> {
{
dataset.repositoryFiles && dataset.repositoryFiles.map((e: RepositoryFile) => (
<PropertiesItem key={ e.uuid } title={
<a href={ `/proxy/api/v0/repository/download/${e.uuid}` }>
<a href={ `/proxy/api/v1/repository/download/${e.uuid}` }>
<Button variant="raised" component="span" className={ `${classes.buttonGreen} ${classes.button}` }>
Download
</Button>
......
......@@ -243,7 +243,7 @@ class DetailInfo extends React.Component<IDetailInfoProps, any> {
}
{ descriptorList.state !== PublishState.PUBLISHED && descriptorList._permissions.delete && <Button onClick={ this.onDelete } type="button">Delete</Button> }
{ descriptorList._permissions.manage && <Permissions clazz={ DescriptorList.clazz } id={ descriptorList.id } /> }
<a target="_blank" href={ `/proxy/api/v0/descriptorlist/${descriptorList.uuid}/html` }><Button type="button">Download as HTML</Button></a>
<a target="_blank" href={ `/proxy/api/v1/descriptorlist/${descriptorList.uuid}/html` }><Button type="button">Download as HTML</Button></a>
</CardActions>
) }
</Card>
......
......@@ -5,10 +5,10 @@ import { axiosBackend } from 'utilities/requestUtils';
import Crop from 'model/genesys/Crop';
const URL_LIST_CROPS = `/api/v0/crops`;
const URL_SAVE_CROP = `/api/v0/crops/save`;
const URL_GET_CROP = UrlTemplate.parse(`/api/v0/crops/{shortName}`);
const URL_DELETE_CROP = UrlTemplate.parse(`/api/v0/crops/{shortName}`);
const URL_LIST_CROPS = `/api/v1/crops/list`;
const URL_SAVE_CROP = `/api/v1/crops/save`;
const URL_GET_CROP = UrlTemplate.parse(`/api/v1/crops/{shortName}`);
const URL_DELETE_CROP = UrlTemplate.parse(`/api/v1/crops/{shortName}`);
/*
* Defined in Swagger as 'crop'
......@@ -16,7 +16,7 @@ const URL_DELETE_CROP = UrlTemplate.parse(`/api/v0/crops/{shortName}`);
class CropService {
/**
* listCrops at /api/v0/crops
* listCrops at /api/v1/crops/list
*
*/
public static listCrops(): Promise<Crop[]> {
......@@ -33,7 +33,7 @@ class CropService {
}
/**
* saveCrop at /api/v0/crops/save
* saveCrop at /api/v1/crops/save
*
* @param cropJson cropJson
*/
......@@ -51,7 +51,7 @@ class CropService {
}
/**
* getCrop at /api/v0/crops/{shortName}
* getCrop at /api/v1/crops/{shortName}
*
* @param shortName shortName
*/
......@@ -69,7 +69,7 @@ class CropService {
}
/**
* deleteCrop at /api/v0/crops/{shortName}
* deleteCrop at /api/v1/crops/{shortName}
*
* @param shortName shortName
*/
......
This diff is collapsed.
......@@ -8,21 +8,21 @@ import DescriptorListFilter from 'model/catalog/DescriptorListFilter';
import FilteredPage from 'model/FilteredPage';
import { IPageRequest } from 'model/Page';
const URL_ADD_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptorlist/add-descriptors/{UUID},{version}`);
const URL_APPROVE_DESCRIPTOR_LIST = `/api/v0/descriptorlist/approve`;
const URL_AUTOCOMPLETE = `/api/v0/descriptorlist/autocomplete`;
const URL_CREATE_DESCRIPTOR_LIST = `/api/v0/descriptorlist/create`;
const URL_REVIEW_DESCRIPTOR_LIST = `/api/v0/descriptorlist/for-review`;
const URL_LIST_DESCRIPTOR_LISTS = `/api/v0/descriptorlist/list`;
const URL_MY_DESCRIPTOR_LISTS = `/api/v0/descriptorlist/list-mine`;
const URL_LIST_DESCRIPTOR_LISTS_BY_CODE = UrlTemplate.parse(`/api/v0/descriptorlist/list/{filterCode}`);
const URL_REJECT_DESCRIPTOR_LIST = `/api/v0/descriptorlist/reject`;
const URL_REMOVE_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptorlist/remove-descriptors/{UUID},{version}`);
const URL_SET_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptorlist/set-descriptors/{UUID},{version}`);
const URL_UPDATE_DESCRIPTOR_LIST = `/api/v0/descriptorlist/update`;
const URL_GET_DESCRIPTOR_LIST = UrlTemplate.parse(`/api/v0/descriptorlist/{UUID}`);
const URL_DELETE_DESCRIPTOR_LIST = UrlTemplate.parse(`/api/v0/descriptorlist/{UUID},{version}`);
const URL_GENERATE_DOCUMENT = UrlTemplate.parse(`/api/v0/descriptorlist/{UUID}/html`);
const URL_ADD_DESCRIPTOR = UrlTemplate.parse(`/api/v1/descriptorlist/add-descriptors/{UUID},{version}`);
const URL_APPROVE_DESCRIPTOR_LIST = `/api/v1/descriptorlist/approve`;
const URL_AUTOCOMPLETE = `/api/v1/descriptorlist/autocomplete`;
const URL_CREATE_DESCRIPTOR_LIST = `/api/v1/descriptorlist/create`;
const URL_REVIEW_DESCRIPTOR_LIST = `/api/v1/descriptorlist/for-review`;
const URL_LIST_DESCRIPTOR_LISTS = `/api/v1/descriptorlist/list`;
const URL_MY_DESCRIPTOR_LISTS = `/api/v1/descriptorlist/list-mine`;
const URL_LIST_DESCRIPTOR_LISTS_BY_CODE = UrlTemplate.parse(`/api/v1/descriptorlist/list/{filterCode}`);
const URL_REJECT_DESCRIPTOR_LIST = `/api/v1/descriptorlist/reject`;
const URL_REMOVE_DESCRIPTOR = UrlTemplate.parse(`/api/v1/descriptorlist/remove-descriptors/{UUID},{version}`);
const URL_SET_DESCRIPTOR = UrlTemplate.parse(`/api/v1/descriptorlist/set-descriptors/{UUID},{version}`);
const URL_UPDATE_DESCRIPTOR_LIST = `/api/v1/descriptorlist/update`;
const URL_GET_DESCRIPTOR_LIST = UrlTemplate.parse(`/api/v1/descriptorlist/{UUID}`);
const URL_DELETE_DESCRIPTOR_LIST = UrlTemplate.parse(`/api/v1/descriptorlist/{UUID},{version}`);
const URL_GENERATE_DOCUMENT = UrlTemplate.parse(`/api/v1/descriptorlist/{UUID}/html`);
/*
* Defined in Swagger as 'descriptor-list'
......@@ -30,7 +30,7 @@ const URL_GENERATE_DOCUMENT = UrlTemplate.parse(`/api/v0/descriptorlist/{UUID}/h
class DescriptorListService {
/**
* addDescriptor at /api/v0/descriptorlist/add-descriptors/{UUID},{version}
* addDescriptor at /api/v1/descriptorlist/add-descriptors/{UUID},{version}
*
* @param UUID UUID
* @param version version
......@@ -50,7 +50,7 @@ class DescriptorListService {
}
/**
* approveDescriptorList at /api/v0/descriptorlist/approve
* approveDescriptorList at /api/v1/descriptorlist/approve
*
* @param uuid uuid
* @param version version
......@@ -73,7 +73,7 @@ class DescriptorListService {
}
/**
* autocomplete at /api/v0/descriptorlist/autocomplete
* autocomplete at /api/v1/descriptorlist/autocomplete
*
* @param d d
*/
......@@ -94,7 +94,7 @@ class DescriptorListService {
}
/**
* createDescriptorList at /api/v0/descriptorlist/create
* createDescriptorList at /api/v1/descriptorlist/create
*
* @param source source
*/
......@@ -112,7 +112,7 @@ class DescriptorListService {
}
/**
* reviewDescriptorList at /api/v0/descriptorlist/for-review
* reviewDescriptorList at /api/v1/descriptorlist/for-review
*
* @param uuid uuid
* @param version version
......@@ -135,7 +135,7 @@ class DescriptorListService {
}
/**
* listDescriptorLists at /api/v0/descriptorlist/list
* listDescriptorLists at /api/v1/descriptorlist/list
*
* @param filter filter
* @param page undefined
......@@ -161,7 +161,7 @@ class DescriptorListService {
}
/**
* myDescriptorLists at /api/v0/descriptorlist/list-mine
* myDescriptorLists at /api/v1/descriptorlist/list-mine
*
* @param filter filter
* @param page undefined
......@@ -187,7 +187,7 @@ class DescriptorListService {
}
/**
* listDescriptorListsByCode at /api/v0/descriptorlist/list/{filterCode}
* listDescriptorListsByCode at /api/v1/descriptorlist/list/{filterCode}
*
* @param filterCode filterCode
* @param page undefined
......@@ -212,7 +212,7 @@ class DescriptorListService {
}
/**
* rejectDescriptorList at /api/v0/descriptorlist/reject
* rejectDescriptorList at /api/v1/descriptorlist/reject
*
* @param uuid uuid
* @param version version
......@@ -235,7 +235,7 @@ class DescriptorListService {
}
/**
* removeDescriptor at /api/v0/descriptorlist/remove-descriptors/{UUID},{version}
* removeDescriptor at /api/v1/descriptorlist/remove-descriptors/{UUID},{version}
*
* @param UUID UUID
* @param version version
......@@ -255,7 +255,7 @@ class DescriptorListService {
}
/**
* setDescriptor at /api/v0/descriptorlist/set-descriptors/{UUID},{version}
* setDescriptor at /api/v1/descriptorlist/set-descriptors/{UUID},{version}
*
* @param UUID UUID
* @param version version
......@@ -275,7 +275,7 @@ class DescriptorListService {
}
/**
* updateDescriptorList at /api/v0/descriptorlist/update
* updateDescriptorList at /api/v1/descriptorlist/update
*
* @param source source
*/
......@@ -293,7 +293,7 @@ class DescriptorListService {
}
/**
* getDescriptorList at /api/v0/descriptorlist/{UUID}
* getDescriptorList at /api/v1/descriptorlist/{UUID}
*
* @param UUID UUID
*/
......@@ -311,7 +311,7 @@ class DescriptorListService {
}
/**
* deleteDescriptorList at /api/v0/descriptorlist/{UUID},{version}
* deleteDescriptorList at /api/v1/descriptorlist/{UUID},{version}
*
* @param UUID UUID
* @param version version
......@@ -330,7 +330,7 @@ class DescriptorListService {
}
/**
* generateDocument at /api/v0/descriptorlist/{UUID}/html
* generateDocument at /api/v1/descriptorlist/{UUID}/html
*
* @param UUID UUID
*/
......
......@@ -8,22 +8,22 @@ import DescriptorFilter from 'model/catalog/DescriptorFilter';
import FilteredPage from 'model/FilteredPage';
import { IPageRequest } from 'model/Page';
const URL_APPROVE_DESCRIPTOR = `/api/v0/descriptor/approve`;
const URL_LIST_CATEGORIES = `/api/v0/descriptor/categories`;
const URL_COPY_DESCRIPTOR = `/api/v0/descriptor/copy`;
const URL_CREATE_DESCRIPTOR = `/api/v0/descriptor/create`;
const URL_EXPORT_DESCRIPTORS = `/api/v0/descriptor/export`;
const URL_GET_OTHER_DESCRIPTOR_INFO = UrlTemplate.parse(`/api/v0/descriptor/extra/{UUID}`);
const URL_REVIEW_DESCRIPTOR = `/api/v0/descriptor/for-review`;
const URL_LIST_DESCRIPTORS = `/api/v0/descriptor/list`;
const URL_MY_DESCRIPTORS = `/api/v0/descriptor/list-mine`;
const URL_LIST_DESCRIPTORS_BY_SHORT = UrlTemplate.parse(`/api/v0/descriptor/list/{filterCode}`);
const URL_REJECT_DESCRIPTOR = `/api/v0/descriptor/reject`;
const URL_SEARCH_MATCHING_DESCRIPTOR = `/api/v0/descriptor/search-matching`;
const URL_UPDATE_DESCRIPTOR = `/api/v0/descriptor/update`;
const URL_UPDATE_DESCRIPTORS = `/api/v0/descriptor/upsert`;
const URL_GET_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptor/{UUID}`);
const URL_DELETE_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptor/{UUID},{version}`);
const URL_APPROVE_DESCRIPTOR = `/api/v1/descriptor/approve`;
const URL_LIST_CATEGORIES = `/api/v1/descriptor/categories`;
const URL_COPY_DESCRIPTOR = `/api/v1/descriptor/copy`;
const URL_CREATE_DESCRIPTOR = `/api/v1/descriptor/create`;
const URL_EXPORT_DESCRIPTORS = `/api/v1/descriptor/export`;
const URL_GET_OTHER_DESCRIPTOR_INFO = UrlTemplate.parse(`/api/v1/descriptor/extra/{UUID}`);
const URL_REVIEW_DESCRIPTOR = `/api/v1/descriptor/for-review`;
const URL_LIST_DESCRIPTORS = `/api/v1/descriptor/list`;
const URL_MY_DESCRIPTORS = `/api/v1/descriptor/list-mine`;
const URL_LIST_DESCRIPTORS_BY_SHORT = UrlTemplate.parse(`/api/v1/descriptor/list/{filterCode}`);
const URL_REJECT_DESCRIPTOR = `/api/v1/descriptor/reject`;
const URL_SEARCH_MATCHING_DESCRIPTOR = `/api/v1/descriptor/search-matching`;
const URL_UPDATE_DESCRIPTOR = `/api/v1/descriptor/update`;
const URL_UPDATE_DESCRIPTORS = `/api/v1/descriptor/upsert`;
const URL_GET_DESCRIPTOR = UrlTemplate.parse(`/api/v1/descriptor/{UUID}`);
const URL_DELETE_DESCRIPTOR = UrlTemplate.parse(`/api/v1/descriptor/{UUID},{version}`);
/*
* Defined in Swagger as 'descriptor'
......@@ -31,7 +31,7 @@ const URL_DELETE_DESCRIPTOR = UrlTemplate.parse(`/api/v0/descriptor/{UUID},{vers
class DescriptorService {
/**
* approveDescriptor at /api/v0/descriptor/approve
* approveDescriptor at /api/v1/descriptor/approve
*
* @param uuid uuid
* @param version version
......@@ -54,7 +54,7 @@ class DescriptorService {
}
/**
* listCategories at /api/v0/descriptor/categories
* listCategories at /api/v1/descriptor/categories
*
*/
public static listCategories(): Promise<string[]> {
......@@ -71,7 +71,7 @@ class DescriptorService {
}
/**
* copyDescriptor at /api/v0/descriptor/copy
* copyDescriptor at /api/v1/descriptor/copy
*
* @param source source
* @param major major
......@@ -93,7 +93,7 @@ class DescriptorService {
}
/**
* createDescriptor at /api/v0/descriptor/create
* createDescriptor at /api/v1/descriptor/create
*
* @param source source
*/
......@@ -111,7 +111,7 @@ class DescriptorService {
}
/**
* exportDescriptors at /api/v0/descriptor/export
* exportDescriptors at /api/v1/descriptor/export
*
* @param filter filter
*/
......@@ -132,7 +132,7 @@ class DescriptorService {
}
/**
* getOtherDescriptorInfo at /api/v0/descriptor/extra/{UUID}
* getOtherDescriptorInfo at /api/v1/descriptor/extra/{UUID}
*
* @param UUID UUID
*/
......@@ -150,7 +150,7 @@ class DescriptorService {
}
/**
* reviewDescriptor at /api/v0/descriptor/for-review
* reviewDescriptor at /api/v1/descriptor/for-review
*
* @param uuid uuid
* @param version version
......@@ -173,7 +173,7 @@ class DescriptorService {
}
/**
* listDescriptors at /api/v0/descriptor/list
* listDescriptors at /api/v1/descriptor/list
*
* @param filter filter
* @param page undefined
......@@ -199,7 +199,7 @@ class DescriptorService {
}
/**
* myDescriptors at /api/v0/descriptor/list-mine
* myDescriptors at /api/v1/descriptor/list-mine
*
* @param filter filter
* @param page undefined
......@@ -225,7 +225,7 @@ class DescriptorService {
}
/**
* listDescriptorsByShort at /api/v0/descriptor/list/{filterCode}
* listDescriptorsByShort at /api/v1/descriptor/list/{filterCode}
*
* @param filterCode filterCode
* @param page undefined
......@@ -250,7 +250,7 @@ class DescriptorService {
}
/**
* rejectDescriptor at /api/v0/descriptor/reject
* rejectDescriptor at /api/v1/descriptor/reject
*
* @param uuid uuid
* @param version version
......@@ -273,7 +273,7 @@ class DescriptorService {
}
/**
* searchMatchingDescriptor at /api/v0/descriptor/search-matching
* searchMatchingDescriptor at /api/v1/descriptor/search-matching
*
* @param source source
*/
......@@ -291,7 +291,7 @@ class DescriptorService {
}
/**
* updateDescriptor at /api/v0/descriptor/update
* updateDescriptor at /api/v1/descriptor/update
*
* @param source source
*/
......@@ -309,7 +309,7 @@ class DescriptorService {
}
/**
* updateDescriptors at /api/v0/descriptor/upsert
* updateDescriptors at /api/v1/descriptor/upsert
*
* @param source source
*/
......@@ -327,7 +327,7 @@ class DescriptorService {
}
/**
* getDescriptor at /api/v0/descriptor/{UUID}
* getDescriptor at /api/v1/descriptor/{UUID}
*
* @param UUID UUID
*/
......@@ -345,7 +345,7 @@ class DescriptorService {
}
/**
* deleteDescriptor at /api/v0/descriptor/{UUID},{version}
* deleteDescriptor at /api/v1/descriptor/{UUID},{version}
*
* @param UUID UUID
* @param version version
......
......@@ -5,8 +5,8 @@ import {axiosBackend} from 'utilities/requestUtils';
import VocabularyTerm from 'model/vocabulary/VocabularyTerm';
const URL_AUTOCOMPLETE_GEO_TERM = `/api/v0/geo/iso3166/autocomplete`;
const URL_GET = UrlTemplate.parse(`/api/v0/geo/iso3166/{code}`);
const URL_AUTOCOMPLETE_GEO_TERM = `/api/v1/geo/iso3166/autocomplete`;
const URL_GET = UrlTemplate.parse(`/api/v1/geo/iso3166/{code}`);
/*
* Defined in Swagger as 'geo'
......@@ -14,7 +14,7 @@ const URL_GET = UrlTemplate.parse(`/api/v0/geo/iso3166/{code}`);
class GeoService {
/**
* autocompleteGeoTerm at /api/v0/geo/iso3166/autocomplete
* autocompleteGeoTerm at /api/v1/geo/iso3166/autocomplete
*
* @param c code
*/
......@@ -35,7 +35,7 @@ class GeoService {
}
/**
* get at /api/v0/geo/iso3166/{code}
* get at /api/v1/geo/iso3166/{code}
*
* @param code code
*/
......
......@@ -2,7 +2,7 @@ import { axiosBackend } from 'utilities/requestUtils';
// import FormData from 'form-data'; // it's in the browser
const LOGIN_URL = `/oauth/token`;
const URL_LOGOUT = `/api/v0/me/logout`;
const URL_LOGOUT = `/api/v1/me/logout`;
// const LOGOUT_URL = `${API_BASE_URL}/me/logout`;
export const CHECK_TOKEN_URL = `/oauth/check_token`;
export const VERIFY_GOOGLE_TOKEN_URL = `/google/verify-token`;
......@@ -34,7 +34,7 @@ export class LoginService {
}
/**
* logout at /api/v0/me/logout
* logout at /api/v1/me/logout
*
* @param authToken Authorization token
*/
......
......@@ -8,12 +8,12 @@ import Page, { IPageRequest } from 'model/Page';
import Partner from 'model/genesys/Partner';
import PartnerFilter from 'model/genesys/PartnerFilter';
const URL_CREATE_PARTNER = `/api/v0/partner/create`;
const URL_LIST_PARTNERS = `/api/v0/partner/list`;
const URL_MY_PARTNERS = `/api/v0/partner/list-mine`;
const URL_UPDATE_PARTNER = `/api/v0/partner/update`;
const URL_GET_PARTNER = UrlTemplate.parse(`/api/v0/partner/{UUID}`);
const URL_DELETE_PARTNER = UrlTemplate.parse(`/api/v0/partner/{UUID},{version}`);
const URL_CREATE_PARTNER = `/api/v1/partner/create`;
const URL_LIST_PARTNERS = `/api/v1/partner/list`;
const URL_MY_PARTNERS = `/api/v1/partner/list-mine`;
const URL_UPDATE_PARTNER = `/api/v1/partner/update`;
const URL_GET_PARTNER = UrlTemplate.parse(`/api/v1/partner/{UUID}`);
const URL_DELETE_PARTNER = UrlTemplate.parse(`/api/v1/partner/{UUID},{version}`);
/*
* Defined in Swagger as 'partner'
......@@ -21,7 +21,7 @@ const URL_DELETE_PARTNER = UrlTemplate.parse(`/api/v0/partner/{UUID},{version}`)
class PartnerService {
/**
* createPartner at /api/v0/partner/create
* createPartner at /api/v1/partner/create
*
* @param source source
*/
......@@ -39,7 +39,7 @@ class PartnerService {
}
/**
* listPartners at /api/v0/partner/list
* listPartners at /api/v1/partner/list
*
* @param filter filter
* @param page undefined
......@@ -65,7 +65,7 @@ class PartnerService {
}
/**
* myPartners at /api/v0/partner/list-mine
* myPartners at /api/v1/partner/list-mine
*
* @param partnerFilter partnerFilter
* @param page undefined
......@@ -90,7 +90,7 @@ class PartnerService {
}
/**
* updatePartner at /api/v0/partner/update
* updatePartner at /api/v1/partner/update
*
* @param source source
*/
......@@ -108,7 +108,7 @@ class PartnerService {
}
/**
* getPartner at /api/v0/partner/{UUID}
* getPartner at /api/v1/partner/{UUID}
*
* @param UUID UUID
*/
......@@ -126,7 +126,7 @@ class PartnerService {
}
/**
* deletePartner at /api/v0/partner/{UUID},{version}
* deletePartner at /api/v1/partner/{UUID},{version}
*
* @param UUID UUID
* @param version version
......
......@@ -4,7 +4,7 @@ import { axiosBackend } from 'utilities/requestUtils';
import DatasetFilter from 'model/catalog/DatasetFilter';
const URL_DATASETS = `/api/v0/search/dataset/suggest`;
const URL_DATASETS = `/api/v1/search/dataset/suggest`;
/*
* Defined in Swagger as 'search-controller'
......@@ -12,7 +12,7 @@ const URL_DATASETS = `/api/v0/search/dataset/suggest`;
class SearchService {
/**
* datasets at /api/v0/search/dataset/suggest
* datasets at /api/v1/search/dataset/suggest
*
* @param filters filters
* @param q q
......
......@@ -9,21 +9,21 @@ import Vocabulary from 'model/vocabulary/Vocabulary';
import VocabularyFilter from 'model/vocabulary/VocabularyFilter';
import VocabularyTerm from 'model/vocabulary/VocabularyTerm';
const URL_AUTOCOMPLETE_LANGUAGE_TERM = `/api/v0/lang/autocomplete`;
const URL_UPDATE_LANGUAGE_VOCABULARY = `/api/v0/lang/update`;
const URL_UPDATE_ISO3166_VOCABULARY = `/api/v0/geo/update`;
const URL_GET_LANGUAGE_TERM = UrlTemplate.parse(`/api/v0/lang/{code}`);
const URL_CREATE = `/api/v0/vocabulary/create`;
const URL_LIST = `/api/v0/vocabulary/list`;
const URL_UPDATE_CONTROLLED_VOCABULARY = `/api/v0/vocabulary/update`;
const URL_GET = UrlTemplate.parse(`/api/v0/vocabulary/{UUID}`);
const URL_DELETE = UrlTemplate.parse(`/api/v0/vocabulary/{UUID},{version}`);
const URL_AUTOCOMPLETE_TERM = UrlTemplate.parse(`/api/v0/vocabulary/{UUID}/autocomplete`);
const URL_LIST_TERMS = UrlTemplate.parse(`/api/v0/vocabulary/{UUID}/terms`);
const URL_GET_TERM = UrlTemplate.parse(`/api/v0/vocabulary/{UUID}/{code}`);
const URL_AUTOCOMPLETE_WIEWS_TERM = `/api/v0/wiews/autocomplete`;
const URL_UPDATE_WIEWS_VOCABULARY = `/api/v0/wiews/update`;
const URL_GET_WIEWS_TERM = UrlTemplate.parse(`/api/v0/wiews/{code}`);
const URL_AUTOCOMPLETE_LANGUAGE_TERM = `/api/v1/lang/autocomplete`;
const URL_UPDATE_LANGUAGE_VOCABULARY = `/api/v1/lang/update`;
const URL_UPDATE_ISO3166_VOCABULARY = `/api/v1/geo/update`;
const URL_GET_LANGUAGE_TERM = UrlTemplate.parse(`/api/v1/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`;
const URL_GET = UrlTemplate.parse(`/api/v1/vocabulary/{UUID}`);
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}`);
/*
* Defined in Swagger as 'vocabulary'
......@@ -31,7 +31,7 @@ const URL_GET_WIEWS_TERM = UrlTemplate.parse(`/api/v0/wiews/{code}`);
class VocabularyService {
/**
* autocompleteLanguageTerm at /api/v0/lang/autocomplete
* autocompleteLanguageTerm at /api/v1/lang/autocomplete
*
* @param l l
*/
......@@ -51,9 +51,8 @@ class VocabularyService {
}).then(({ data }) => data as VocabularyTerm[]);
}
/**
* updateLanguageVocabulary at /api/v0/lang/update
* updateLanguageVocabulary at /api/v1/geo/update
*
*/
public static updateISO3166Vocabulary(): Promise<string> {
......@@ -69,9 +68,8 @@ class VocabularyService {
}).then(({ data }) => data as string);
}
/**
* updateLanguageVocabulary at /api/v0/lang/update
* updateLanguageVocabulary at /api/v1/lang/update
*
*/
public static updateLanguageVocabulary(): Promise<string> {
......@@ -88,7 +86,7 @@ class VocabularyService {
}
/**
* getLanguageTerm at /api/v0/lang/{code}
* getLanguageTerm at /api/v1/lang/{code}
*
* @param code code
*/
......@@ -106,7 +104,7 @@ class VocabularyService {
}
/**
* create at /api/v0/vocabulary/create
* create at /api/v1/vocabulary/create
*
* @param source source
*/
......@@ -124,7 +122,7 @@ class VocabularyService {
}
/**
* list at /api/v0/vocabulary/list
* list at /api/v1/vocabulary/list
*
* @param filter filter
* @param f f
......@@ -151,7 +149,7 @@ class VocabularyService {
}
/**
* updateControlledVocabulary at /api/v0/vocabulary/update
* updateControlledVocabulary at /api/v1/vocabulary/update
*
* @param source source
*/
......@@ -169,7 +167,7 @@ class VocabularyService {
}
/**
* get at /api/v0/vocabulary/{UUID}
* get at /api/v1/vocabulary/{UUID}
*
* @param UUID UUID
*/
......@@ -187,7 +185,7 @@ class VocabularyService {
}
/**
* delete at /api/v0/vocabulary/{UUID},{version}
* delete at /api/v1/vocabulary/{UUID},{version}
*
* @param UUID UUID
* @param version version
......@@ -206,7 +204,7 @@ class VocabularyService {
}
/**
* autocompleteTerm at /api/v0/vocabulary/{UUID}/autocomplete
* autocompleteTerm at /api/v1/vocabulary/{UUID}/autocomplete
*
* @param UUID UUID
* @param q q
......@@ -228,7 +226,7 @@ class VocabularyService {
}
/**
* listTerms at /api/v0/vocabulary/{UUID}/terms
* listTerms at /api/v1/vocabulary/{UUID}/terms
*
* @param UUID UUID
* @param page undefined
......@@ -253,7 +251,7 @@ class VocabularyService {
}
/**
* getTerm at /api/v0/vocabulary/{UUID}/{code}
* getTerm at /api/v1/vocabulary/{UUID}/{code}
*
* @param code code
* @param UUID UUID
......@@ -272,7 +270,7 @@ class VocabularyService {
}
/**
* autocompleteWiewsTerm at /api/v0/wiews/autocomplete
* autocompleteWiewsTerm at /api/v1/wiews/autocomplete
*
* @param term term
*/
......@@ -293,7 +291,7 @@ class VocabularyService {
}
/**
* updateWiewsVocabulary at /api/v0/wiews/update
* updateWiewsVocabulary at /api/v1/wiews/update
*
*/
public static updateWiewsVocabulary(): Promise<string> {
......@@ -310,7 +308,7 @@ class VocabularyService {
}
/**
* getWiewsTerm at /api/v0/wiews/{code}
* getWiewsTerm at /api/v1/wiews/{code}
*
* @param code code
*/
......