How to use the @choerodon/master.axios.put function in @choerodon/master

To help you get started, we’ve selected a few @choerodon/master examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github choerodon / devops-service / react / routes / resource / main-view / contents / application / stores / useSecretStore.js View on Github external
postKV(projectId, data) {
      const { id } = data;
      if (id) {
        return axios.put(`/devops/v1/projects/${projectId}/secret`, JSON.stringify(data));
      } else {
        return axios.post(`/devops/v1/projects/${projectId}/secret`, JSON.stringify(data));
      }
    },
github choerodon / devops-service / react / routes / resource / main-view / stores / useCustomStore.js View on Github external
createData(projectId, data) {
      if (data.get('resourceId')) {
        return axios.put(`/devops/v1/projects/${projectId}/customize_resource`,
          data, { headers: { 'Content-Type': 'multipart/form-data' } });  
      } else {
        return axios.post(`/devops/v1/projects/${projectId}/customize_resource`,
          data, { headers: { 'Content-Type': 'multipart/form-data' } });
      }
    },
  }));
github choerodon / devops-service / react / routes / environment / main-view / sidebar / tree-item / stores / useStore.js View on Github external
effectEnv(projectId, id, target) {
      return axios.put(`/devops/v1/projects/${projectId}/envs/${id}/active?active=${target}`);
    },
github choerodon / devops-service / react / routes / environment / main-view / contents / detail / modals / resource-setting / store / NotificationsStore.js View on Github external
  updateData = (projectId, data) => axios.put(`/devops/v1/projects/${projectId}/notification`, JSON.stringify(data));

@choerodon/master

A package of Master for Choerodon platform.

ISC
Latest version published 2 years ago

Package Health Score

43 / 100
Full package analysis