123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /*
- * <<
- * Davinci
- * ==
- * Copyright (C) 2016 - 2017 EDP
- * ==
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- * >>
- */
- import { API_HOST, HOST1 } from '../globalConstants'
- export default {
- externalAuthProviders: `${API_HOST}/login/getOauth2Clients`,
- tryExternalAuth: `${API_HOST}/login/externalLogin`,
- login: `${API_HOST}/login`,
- group: `${API_HOST}/groups`,
- user: `${API_HOST}/users`,
- changepwd: `${API_HOST}/changepwd`,
- source: `${API_HOST}/sources`,
- view: `${API_HOST}/views`,
- widget: `${API_HOST}/widgets`,
- display: `${API_HOST}/displays`,
- share: `${API_HOST}/share`,
- checkName: `${API_HOST}/check`,
- projectsCheckName: `${API_HOST}/check/`,
- uploads: `${API_HOST}/uploads`,
- schedule: `${API_HOST}/cronjobs`,
- signup: `${API_HOST}/users`,
- organizations: `${API_HOST}/organizations`,
- checkNameUnique: `${API_HOST}/check`,
- projects: `${API_HOST}/projects`,
- teams: `${API_HOST}/teams`,
- roles: `${API_HOST}/roles`,
- portal: `${API_HOST}/dashboardPortals`,
- star: `${API_HOST}/star`,
- download: `${API_HOST}/download`,
- buriedPoints: `${API_HOST}/statistic`,
- configurations: `${API_HOST}/configurations`,
- // 根据ticket获取用户信息
- getUserInfo: `${HOST1}taihu-auth/thirdLogin/getUserInfo`,
- // 数据概览
- dataScreening: `${API_HOST}/dataScreening`,
- // 获取资源目录列表
- getCatalogues: `${API_HOST}/catalogue/getCatalogues`,
- // 创建资源目录 POST
- createCatalogue: `${API_HOST}/catalogue/createCatalogue`,
- // 修改资源目录 PUT /api/v3/catalogue/updateCatalogue/{id}
- updateCatalogue: `${API_HOST}/catalogue/updateCatalogue`,
- // 删除资源目录 DELETE /api/v3/catalogue/deleteCatalogue/{id}
- deleteCatalogue: `${API_HOST}/catalogue/deleteCatalogue/`,
- // 根据目录id获取view /api/v3/views/getViewsByParentId params: projectId parentId
- getViewsByParentId: `${API_HOST}/views/getViewsByParentId`
- // getCatalogues: ``,
- }
|