Skip to main content
Version: 2.4.6

Project

note

This resource allows user to request project control to SENSR. Detailed behavior of each command is described below.

GET

/[SENSR version]/commands/project/list

  • Return all available projects in path.

  • If path is not set, SENSR uses the default project path('~/seoulrobotics/projects').

  • Parameters
    • path : Path to search SENSR projects.
  • Return code
    • 200 OK
    • 400 BAD REQ
  • Example

$ curl -X GET 'http://localhost:9080/[SENSR version]/commands/project/list'
** Respond **
[
"project_1",
"project_2",
"project_3"
]

/[SENSR version]/commands/project

Return information about the project currently open.<br>
  • Return code
    • 200 OK
    • 400 BAD REQ
  • Example

$ curl -X GET 'http://localhost:9080/[SENSR version]/commands/project'
** Respond **
{
"project_name": "my_project"
}


POST

/[SENSR version]/commands/project

  • Load a project.

  • Parameters
    • path : Parent path of the project located. (If not set, default path will be used.)
    • name : Project name.
  • Return code
    • 200 OK
    • 400 BAD REQ
    • 500 INTERNAL SERVER ERR


PUT

/[SENSR version]/commands/project

  • Create a new project.

  • Parameters
    • path : Parent path of the project will be created. (If not set, default path will be used.)
    • name : Project name.
  • Return code
    • 200 OK
    • 400 BAD REQ
    • 500 INTERNAL SERVER ERR


DELETE

/[SENSR version]/commands/project

  • Delete the project.

  • Parameters
    • path : Parent path of the project located. (If not set, default path will be used.)
    • name : Project name.
  • Return code
    • 200 OK
    • 400 BAD REQ
Logo
If you need access, please contact