mirror of
https://github.com/hpd840321/craftlabs-authorization-sdk.git
synced 2026-06-09 10:00:30 +08:00
feat(m6): add JSON template CRUD with versioning
This commit is contained in:
@@ -401,3 +401,20 @@ export function updateIdMapping(id, body) {
|
||||
export function deleteIdMapping(id) {
|
||||
return axios.delete(`/api/v1/integration/id-mappings/${id}`);
|
||||
}
|
||||
|
||||
// —— I12-2 M6 JSON 模板 ——————————————————————
|
||||
export function listJsonTemplates() {
|
||||
return axios.get('/api/v1/integration/json-templates');
|
||||
}
|
||||
export function getJsonTemplate(id) {
|
||||
return axios.get(`/api/v1/integration/json-templates/${id}`);
|
||||
}
|
||||
export function createJsonTemplate(body) {
|
||||
return axios.post('/api/v1/integration/json-templates', body);
|
||||
}
|
||||
export function updateJsonTemplate(id, body) {
|
||||
return axios.put(`/api/v1/integration/json-templates/${id}`, body);
|
||||
}
|
||||
export function deleteJsonTemplate(id) {
|
||||
return axios.delete(`/api/v1/integration/json-templates/${id}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user