api.ts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 } 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: `/taihu-auth/thirdLogin/getUserInfo`,
  50. dataScreening: `/api/v3/dataScreening`
  51. }