mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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
25 lines
685 B
import ApiService from '@/services/api.service'
|
|
|
|
class ConfigService {
|
|
constructor() {
|
|
this.request = ApiService
|
|
}
|
|
|
|
getConfigList({ projectId }) {
|
|
return this.request.get(`/projects/${projectId}/auto-labeling-configs`)
|
|
}
|
|
|
|
addConfig(projectId, payload) {
|
|
return this.request.post(`/projects/${projectId}/auto-labeling-configs`, payload)
|
|
}
|
|
|
|
deleteConfig(projectId, configId) {
|
|
return this.request.delete(`/projects/${projectId}/auto-labeling-configs/${configId}`)
|
|
}
|
|
|
|
updateConfig(projectId, configId, payload) {
|
|
return this.request.patch(`/projects/${projectId}/auto-labeling-configs/${configId}`, payload)
|
|
}
|
|
}
|
|
|
|
export default new ConfigService()
|