diff --git a/Editor-Runtime-API.md b/Editor-Runtime-API.md index 2b31514..b1d58b7 100644 --- a/Editor-Runtime-API.md +++ b/Editor-Runtime-API.md @@ -101,7 +101,6 @@ This is a snapshot of how the api is split across source files, and how each of ![](images/runtime-api/nr-api-runtime-map-1.png)
- | | | | |------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | api/admin/flow.js | `GET /flow/:id`
`POST /flow`
`DELETE /flow/:id`
`PUT /flow/:id` | runtime.log.audit
runtime.nodes.getFlow(id)
runtime.nodes.addFlow(flow)
runtime.nodes.updateFlow(id,flow)
runtime.nodes.removeFlow(id) | @@ -122,4 +121,13 @@ This is a snapshot of how the api is split across source files, and how each of
+### Internal API - v2 + +The existing API has some issues: + + - as seen in the image above, a lots of overlapping links between the editor api and the runtime api + - the editor api knows about the user making a request, the runtime api doesn't + +In order to provide a clean api between the two, some simplification is needed. The detail is still being worked on, but essentially a new runtime api needs to be defined that provides a higher level of abstraction of the existing internal API. The new api will also allow a user object to be passed on all calls. + ![](images/runtime-api/nr-api-runtime-map-2.png) \ No newline at end of file