mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(m1): add project stakeholder CRUD
This commit is contained in:
@@ -437,3 +437,16 @@ export function updateJsonTemplate(id, body) {
|
||||
export function deleteJsonTemplate(id) {
|
||||
return axios.delete(`/api/v1/integration/json-templates/${id}`);
|
||||
}
|
||||
|
||||
export function listStakeholders(projectId) {
|
||||
return axios.get(`/api/v1/projects/${projectId}/stakeholders`);
|
||||
}
|
||||
export function addStakeholder(projectId, body) {
|
||||
return axios.post(`/api/v1/projects/${projectId}/stakeholders`, body);
|
||||
}
|
||||
export function updateStakeholder(projectId, id, body) {
|
||||
return axios.put(`/api/v1/projects/${projectId}/stakeholders/${id}`, body);
|
||||
}
|
||||
export function deleteStakeholder(projectId, id) {
|
||||
return axios.delete(`/api/v1/projects/${projectId}/stakeholders/${id}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user