Users

Save Employee Profile

POST SERVER_URL/employee/save

Enables you to save an employee profile.

Parameters

Parameter Value
{color} Parameter of the color that represents a user in the map
{name} Name of the user that you are adding to the map.
{family} User's second name.
{employeegroupid} ID of the group of employees to which you want to add the new user.
{photourl} Address to the employee's photo.
{tracker} ID of the tracker assigned to the user.

JSON Request Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
   "employee":{
      "id":0, // Specify 0 to assign the ID automatically.
      "name":"Ivan", // Name of the employee.
      "family":"Ivanov", // Second name of the employee.
      "photourl":"http:\/\/dev.navigine.com\/web\/uploads\/img\/employee\/6ddfb851f84aead8c78740b7a3610b32.png", // Employees photo.
      "trackerid":"1", // ID of the tracker assigned to the employee.
      "employeegroupid":1, // IF of the group of employees, which the employee should become part of.
      }
   }
}

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
   "employee":{
      "id":25,
      "name":"Ivan",
      "family":"Ivanov",
      "photourl":"http:\/\/dev.navigine.com\/web\/uploads\/img\/employee\/6ddfb851f84aead8c78740b7a3610b32.png",
      "trackerid":"1",
      "employeegroupid":1,
      "employeeGroup":{
         "id":1,
         "groupname":"International Projects",
         "parentid":3,
         "children":[

         ]
      }
   }
}

JSON Error Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
   "errors":{
      "name":[
         "..."
      ],
      "family":[
         "..."
      ],
      "employeegroupid":[
         "..."
      ],
      "color":[
         "..."
      ]
   }
}

Delete Employee Profile

GET SERVER_URL/employee/delete

Enables you to delete an employee profile from the database.

Parameters

Parameter Value
{id} Employee ID to remove

JSON Request Example

1
2
3
{
    "id":0, // Specify 0 to assign the ID automatically.
}

JSON Response

[...]

JSON Error Response

1
2
3
{
   "errors":"..."
}

Edit Employee Profile

POST SERVER_URL/employee/update

Enables you to edit an existing employee profile.

Parameters

Parameter Value
{id} Employee ID to edit
{color} Parameter of the color that represents a user in the map
{name} Name of the user that you are adding to the map.
{family} User's second name.
{employeegroupid} ID of the group of employees to which you want to add the new user.
{photourl} Address to the employee's photo.
{tracker} ID of the tracker assigned to the user.

JSON Request Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
   "employee":{
      "id":0, // Specify 0 to assign the ID automatically.
      "name":"Ivan", // Name of the employee.
      "family":"Ivanov", // Second name of the employee.
      "photourl":"http:\/\/dev.navigine.com\/web\/uploads\/img\/employee\/6ddfb851f84aead8c78740b7a3610b32.png", // Employees photo.
      "trackerid":"1", // ID of the tracker assigned to the employee.
      "employeegroupid":1, // IF of the group of employees, which the employee should become part of.
      }
   }
}

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
{
   "employee":{
      "id":25,
      "name":"1",
      "family":"1",
      "photourl":"http:\/\/dev.navigine.com\/web\/uploads\/img\/employee\/6ddfb851f84aead8c78740b7a3610b32.png",
      "trackerid":"1",
      "employeegroupid":1,
      "employeeGroup":{
         "id":1,
         "groupname":"International Projects",
         "parentid":3,
         "children":[

         ]
      }
   }
}

JSON Error Response

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
{
   "errors":{
      "name":[
         "..."
      ],
      "family":[
         "..."
      ],
      "employeegroupid":[
         "..."
      ],
      "color":[
         "..."
      ]
   }
}

Employee Profile HTML Form

Use the following simple HTML form to fill in an employee profile data:

View Employee Profile Information

GET SERVER_URL/employee/info

Enables you to view an employee profile information.

Parameters

Parameter Value
{userHash} Hash of a registered user.

JSON Request Example

1
2
3
    {
       "userHash": 0000-0000-0000-0000
    }

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
    {
       "id":214,
       "name":"Ilya Devin",
       "company_name":"Creotech",
       "email":"ppp0.at@gmail.com",
       "hash":"081D-7236-5625-7C6D",
       "active":true,
       "last_entry":{
              "date":"2015-08-24 15:08:57.000000",
              "timezone_type":3,
              "timezone":"Europe\/Minsk"
       },
       "role":"ROLE_ROOT"
    }

View an Employee Movement Paths

POST SERVER_URL/heatmapRelative

Enables you to track an employee's movement points (path).

Parameters POST

Parameter Value
{sublocationId} ID of the sublocation, in which you want to view an employee's movements
{dateFrom} Get information, starting from <date in XXXX-XX-XX format>
{dateTill} Get information, till <date in XXXX-XX-XX format>

JSON Request Example

1
2
3
4
5
{
   "sublocationID": "1252",
       "dateFrom": "2015-12-12",
   "dateTill": "2016-01-01"
    }

JSON Response Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
{
   "w":"11.08369",
   "h":"15.83859",
   "imageUrl":"files\/741\/1092\/3193\/new_version\/glonassunion.15th_floor.png",
   "heatmap":[
      {
         "kx":"0.463",
         "ky":"0.093",
         "u":"E7BD16F17C16",
         "weight":"0.0013"
      },
      
   ]
}