axios .put(`${baseURI}auth/users`, credentials) .then((json = {}) => json.data) .then(data => { AppDispatcher.dispatchServerAction({ type: ActionTypes.AUTH_CREATE_USER_SUCCESS, data, }); })
axios .put(`${baseURI}api/feed-monitor/rules`, rule) .then((json = {}) => json.data) .then( data => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_RULE_ADD_SUCCESS, data, }); }, error => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_RULE_ADD_ERROR, error, }); }, )
axios .put(`${baseURI}api/feed-monitor/feeds`, feed) .then((json = {}) => json.data) .then( data => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_FEED_ADD_SUCCESS, data, }); }, error => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_FEED_ADD_ERROR, error, }); }, )
axios .put(`${baseURI}api/feed-monitor/feeds/${id}`, feed) .then((json = {}) => json.data) .then( data => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_FEED_MODIFY_SUCCESS, data, }); }, error => { AppDispatcher.dispatchServerAction({ type: ActionTypes.SETTINGS_FEED_MONITOR_FEED_MODiFY_ERROR, error, }); }, )
axios .put(`${baseURI}api/client/settings/speed-limits`, { direction, throttle, }) .then((json = {}) => json.data) .then( transferData => { AppDispatcher.dispatchServerAction({ type: ActionTypes.CLIENT_SET_THROTTLE_SUCCESS, data: { transferData, }, }); }, error => { AppDispatcher.dispatchServerAction({ type: ActionTypes.CLIENT_SET_THROTTLE_ERROR, data: { error, }, }); }, )
const editReportFromFramework = (testId, reportId, body) => { const url = `${env.PREDATOR_URL}/tests/${testId}/reports/${reportId}`; return axios.put(url, body, { headers: getAuthorizationHeader() }); }
const editTestInFramework = (body, id) => { return axios.put(`${env.PREDATOR_URL}/tests/${id}`, body, { headers: getAuthorizationHeader(), responseType: 'json' }); }
const updateItem = (term, id) => { return axios .put(`api/task/${id}`, { title: term }, { headers: { 'Content-type': 'application/json' } } ) .then((response) => { console.log(response) }) }
update (type, data) { return new Promise((resolve, reject) => { Vue.axios.put('/config/' + type, data).then(response => { resolve(response.data) }) }) }
update (id, data) { data.type = 'tag' return new Promise((resolve, reject) => { Vue.axios.put('/meta/' + id, data).then(response => { resolve(response.data) }) }) }
update (userName, data) { return new Promise((resolve, reject) => { Vue.axios.put('/user/' + userName, data).then(response => { resolve(response.data) }) }) }
const editJobInFramework = (jobId,body) => { return axios.put(`${env.PREDATOR_URL}/jobs/${jobId}`, body, { headers: getAuthorizationHeader() }); }
update (id, data) { return new Promise((resolve, reject) => { Vue.axios.put('/comment/' + id, data).then(response => { resolve(response.data) }) }) }
update (id, data) { data.type = 'tag' return new Promise((resolve, reject) => { Vue.axios.put('/meta/' + id, data).then(response => { resolve(response.data) }) }) }
update (id, data) { data.type = 'category' return new Promise((resolve, reject) => { Vue.axios.put('/meta/' + id, data).then(response => { resolve(response.data) }) }) }