api.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * <<
  3. * Davinci
  4. * ==
  5. * Copyright (C) 2016 - 2017 EDP
  6. * ==
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. * >>
  19. */
  20. import { API_HOST, HOST1 } from '../globalConstants'
  21. export default {
  22. externalAuthProviders: `${API_HOST}/login/getOauth2Clients`,
  23. tryExternalAuth: `${API_HOST}/login/externalLogin`,
  24. login: `${API_HOST}/login`,
  25. group: `${API_HOST}/groups`,
  26. user: `${API_HOST}/users`,
  27. changepwd: `${API_HOST}/changepwd`,
  28. source: `${API_HOST}/sources`,
  29. view: `${API_HOST}/views`,
  30. widget: `${API_HOST}/widgets`,
  31. display: `${API_HOST}/displays`,
  32. share: `${API_HOST}/share`,
  33. checkName: `${API_HOST}/check`,
  34. projectsCheckName: `${API_HOST}/check/`,
  35. uploads: `${API_HOST}/uploads`,
  36. schedule: `${API_HOST}/cronjobs`,
  37. signup: `${API_HOST}/users`,
  38. organizations: `${API_HOST}/organizations`,
  39. checkNameUnique: `${API_HOST}/check`,
  40. projects: `${API_HOST}/projects`,
  41. teams: `${API_HOST}/teams`,
  42. roles: `${API_HOST}/roles`,
  43. portal: `${API_HOST}/dashboardPortals`,
  44. star: `${API_HOST}/star`,
  45. download: `${API_HOST}/download`,
  46. buriedPoints: `${API_HOST}/statistic`,
  47. configurations: `${API_HOST}/configurations`,
  48. // 根据ticket获取用户信息
  49. getUserInfo: `${HOST1}taihu-auth/thirdLogin/getUserInfo`,
  50. // 数据概览
  51. dataScreening: `${API_HOST}/dataScreening`,
  52. // 获取资源目录列表
  53. getCatalogues: `${API_HOST}/catalogue/getCatalogues`,
  54. // 创建资源目录 POST
  55. createCatalogue: `${API_HOST}/catalogue/createCatalogue`,
  56. // 修改资源目录 PUT /api/v3/catalogue/updateCatalogue/{id}
  57. updateCatalogue: `${API_HOST}/catalogue/updateCatalogue`,
  58. // 删除资源目录 DELETE /api/v3/catalogue/deleteCatalogue/{id}
  59. deleteCatalogue: `${API_HOST}/catalogue/deleteCatalogue/`,
  60. // 根据目录id获取view /api/v3/views/getViewsByParentId params: projectId parentId
  61. getViewsByParentId: `${API_HOST}/views/getViewsByParentId`
  62. // getCatalogues: ``,
  63. }