GET
Positions
POST
Positions
POST
SaveCurrent
PUT
MoveMotorsToPosition
DELETE
Positions

/Positions

Http method: GET

Gets all saved motor positions.

Request body is empty.

Response JSON body example:
[
  {
    "Comment": "",
    "Folder": "",
    "GUID": "bdd385a8-15fc-40c4-ba00-62b2aa95deef",
    "MotorPositions": [
      {
        "Key": 65,
        "Value": 76
      },
      {
        "Key": 105,
        "Value": 230
      }
    ],
    "Name": "",
    "TimeCreated": "\/Date(1500038173392+0300)\/"
  },
  {
    "Comment": "",
    "Folder": "",
    "GUID": "dedfbc9a-9e32-4fff-be80-e25824afac80",
    "MotorPositions": [
      {
        "Key": 36,
        "Value": 87
      },
      {
        "Key": 217,
        "Value": 199
      }
    ],
    "Name": "",
    "TimeCreated": "\/Date(1500038173392+0300)\/"
  }
]

/Positions

Http method: POST

Add new postion to saved positions list.

Request JSON body example:
{
  "Comment": "",
  "Folder": "",
  "GUID": "32056ae0-6fe7-4b07-8e82-48feae707f18",
  "MotorPositions": [
    {
      "Key": 19,
      "Value": 69
    },
    {
      "Key": 200,
      "Value": 157
    }
  ],
  "Name": "",
  "TimeCreated": "\/Date(1500038173415+0300)\/"
}

Response body is empty.

/SaveCurrent

Http method: POST

Add new postion to saved positions list. Returns GUID of it.

Request JSON body example:
{
  "Folder": "",
  "Name": ""
}

Response JSON body example:
"1d185c75"

/MoveMotorsToPosition

Http method: PUT

Move motors to positions as saved.

Request JSON body example:
"759e0268"

Response body is empty.

/Positions

Http method: DELETE

Delete existing saved position

Request JSON body example:
"ed22a570"

Response body is empty.