From 54bc9553ec46b8f8244900fd19efca6030a6398a Mon Sep 17 00:00:00 2001 From: Michal Klobukowski Date: Tue, 27 Nov 2018 09:58:58 +0100 Subject: [PATCH] Create vocabulary service Feature #14393 Arvados-DCO-1.1-Signed-off-by: Michal Klobukowski --- .../vocabulary-service/vocabulary-service.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/services/vocabulary-service/vocabulary-service.ts diff --git a/src/services/vocabulary-service/vocabulary-service.ts b/src/services/vocabulary-service/vocabulary-service.ts new file mode 100644 index 00000000..57bdd7c9 --- /dev/null +++ b/src/services/vocabulary-service/vocabulary-service.ts @@ -0,0 +1,18 @@ +// Copyright (C) The Arvados Authors. All rights reserved. +// +// SPDX-License-Identifier: AGPL-3.0 + +import Axios from 'axios'; +import { Vocabulary } from '~/models/vocabulary'; + +export class VocabularyService { + constructor( + private url: string + ) { } + + getVocabulary() { + return Axios + .get(this.url) + .then(response => response.data); + } +} -- 2.30.2