Skip to content
Arthur edited this page May 11, 2021 · 4 revisions

API resources are:

/api/toynet/session: send POST to create new session (containing toynet_user_id and toynet_topo_id in JSON format), get toynet_session_id in response.

{ "toynet_user_id": "<user_id>", "toynet_topo_id": <topo_id> }

returns on success:

{ "status": true, "toynet_session_id: <session_id> }

returns on failure:

{ "message": 500, 400 }

/api/toynet/session/<session_id>: send GET to get the details of that session (the original topo_id, the topology XML itself, the user_id, the create_time and update_time). Send a PUT request to update the topology XML

Clone this wiki locally