Calnex SNE: How has the REST API changed in version 11.0 (Web UI)?

There are a number of differences between the REST API of version 7.0 and that of version 11.0 (the Web UI).

There is a new authenticate endpoint which must be called first of all, in order to authenticate a user. The process for doing this from the Swagger interface is described in the SNE Web UI Operating Manual, accessed through the Help>Documentation menu in the SNE’s UI.

The format of the map files that the REST API accepts has changed from XML to JSON. There’s a new endpoint to upload those JSON map files from your PC to the SNE (in the case where you have previously saved a map from the SNE Web UI to your PC):

The above endpoint is separate from the one which “loads” a map that’s already on the SNE into memory, which is the following:

A new stopasync command has been added, mainly for maps that contain a large amount of delay:

The above endpoint is in addition to the existing stop command from version 7.0, which still remains in the Web UI REST API and still works well for maps with small amounts of delay.

The result of stopasync can be checked with the following endpoint:

There are also new endpoints for retrieving statistics for a specified map or impairment:

Lastly, there are new endpoints for retrieving and setting the values of input and output switches: