This resource demonstrates the interaction with preset in SENSR.
You can import or export preset to the current open project.
GET§
-
/[SENSR version]/settings/preset§
Get detailed information about the desired preset
If you do not pass any name, this command returns full available preset list in the project.- Parameters
- name : Preset name.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X GET 'http://localhost:9080/[SENSR version]/settings/preset' ** Respond ** { "official": [ "highway_bigtruck", "indoor", "indoor_light", "outdoor", "outdoor_light", "long_range" ], "custom": [ "my_preset1" ] }
- Parameters
POST§
-
/[SENSR version]/settings/preset§
Return algorithm configuration of a desired algo node as encrypted string.
You can save the returned string as a file and import it with PUT command.- Parameters
- method : preset operation. ('export' is the only supported method now.)
- node-uri : ID of algo node.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X POST 'http://localhost:9080/[SENSR version]/settings/preset?method=export&node-uri=algo_0000' ** Respond ** W3BhcmFtZXX.........XXEEGE==
- Parameters
PUT§
-
/[SENSR version]/settings/preset§
Import a preset into the current project.
.- Parameters
- name : Name of the imported preset.
- Return code
- 200 OK
- 400 BAD REQ
Example§
$ curl -X PUT 'http://localhost:9080/[SENSR version]/settings/preset?name=my_preset1' --data 'W3BhcmFtZXX.........XXEEGE==' ** Respond ** 200 OK
- Parameters