feat(web): add ontology and orchestrator service modules
- web/src/services/ontology.js: ontology service API client - web/src/services/orchestrator.js: orchestrator service API client
This commit is contained in:
8
web/src/services/ontology.js
Normal file
8
web/src/services/ontology.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { apiRequest } from './api.js'
|
||||||
|
|
||||||
|
export function fetchOntologyParse(payload) {
|
||||||
|
return apiRequest('/ontology/parse', {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify(payload)
|
||||||
|
})
|
||||||
|
}
|
||||||
8
web/src/services/orchestrator.js
Normal file
8
web/src/services/orchestrator.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { apiRequest } from './api.js'
|
||||||
|
|
||||||
|
export function runOrchestrator(payload) {
|
||||||
|
return apiRequest('/orchestrator/run', {
|
||||||
|
method: 'POST',
|
||||||
|
body: JSON.stringify(payload)
|
||||||
|
})
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user