Merge branch '18874-merge-wb2'
[arvados.git] / services / workbench2 / src / services / repositories-service / repositories-service.ts
diff --git a/services/workbench2/src/services/repositories-service/repositories-service.ts b/services/workbench2/src/services/repositories-service/repositories-service.ts
new file mode 100644 (file)
index 0000000..cd30086
--- /dev/null
@@ -0,0 +1,22 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import { AxiosInstance } from "axios";
+import { CommonResourceService } from "services/common-service/common-resource-service";
+import { RepositoryResource } from 'models/repositories';
+import { ApiActions } from 'services/api/api-actions';
+
+ export class RepositoriesService extends CommonResourceService<RepositoryResource> {
+    constructor(serverApi: AxiosInstance, actions: ApiActions) {
+        super(serverApi, "repositories", actions);
+    }
+
+     getAllPermissions() {
+        return CommonResourceService.defaultResponse(
+            this.serverApi
+                .get('repositories/get_all_permissions'),
+            this.actions
+        );
+    }
+} 
\ No newline at end of file