Project
note
This resource demonstrates the interaction with project configurations in SENSR. The project configuration has configs related to a project setting (master node ip address, input mode, etc.
GET
/internal/settings/project/list
Get the list of supported config-ids and config data types in /settings/project resource
- Parameters
- N/A
- Return code
- 200 OK
Example
$ curl -X GET 'http://localhost:9080/internal/settings/project/list'
** Respond **
{
"version": "String",
"algo_node": [{
"uid": "String",
"ip": "String",
"master_ip": "String",
"name": "String",
"bin": "String",
"rosbag_path": "String",
"username": "String",
"preset": "String"
}]
}
/internal/settings/project/meta
Get a meta information of the desired config
- Parameters
- config-id : ID of the desired config
- Return code
- 200 OK
- 400 BAD REQ
Example
$ curl -X GET 'http://localhost:9080/internal/settings/project/meta?config-id=version'
** Respond **
{
"datatype": "String",
"show": true,
"display_name": "Version"
}
/internal/settings/project
Get an actual value of the desired config
- Parameters
- config-id : ID of the desired config
- Return code
- 200 OK
- 400 BAD REQ
Example
$ curl -X GET 'http://localhost:9080/internal/settings/project?config-id=version'
** Respond **
{ "2.1.1" }
POST
/internal/settings/project
Update the value of the desired config
- Parameters
- config-id : ID of the desired config
- Return code
- 200 OK
- 400 BAD REQ
Example
$ curl -X POST 'http://localhost:9080/internal/settings/project?config-id=version'
--data '{ "2.1.1" }'
** Respond **
200 OK