You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
685 B

  1. import ApiService from '@/services/api.service'
  2. class ConfigService {
  3. constructor() {
  4. this.request = ApiService
  5. }
  6. getConfigList({ projectId }) {
  7. return this.request.get(`/projects/${projectId}/auto-labeling-configs`)
  8. }
  9. addConfig(projectId, payload) {
  10. return this.request.post(`/projects/${projectId}/auto-labeling-configs`, payload)
  11. }
  12. deleteConfig(projectId, configId) {
  13. return this.request.delete(`/projects/${projectId}/auto-labeling-configs/${configId}`)
  14. }
  15. updateConfig(projectId, configId, payload) {
  16. return this.request.patch(`/projects/${projectId}/auto-labeling-configs/${configId}`, payload)
  17. }
  18. }
  19. export default new ConfigService()