lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Map icon
GET
/get_user_map_icons
Definition
Query String
Responses application/json
object | ||
items | object | optional |
mapIcons | array[object] | optional |
id | integer | optional |
user_id | integer | optional |
map_icon_id | integer | optional |
active | integer | optional |
name | string | optional |
description | string | optional |
coordinates | string | optional |
created_at | string | optional |
updated_at | string | optional |
map_icon |
object
Validation
{mapIcon} |
optional |
id | integer | optional |
path | string | optional |
width | string number | optional |
height | string number | optional |
status | integer | optional |
{ "items": { "mapIcons": [ { "id": 1, "user_id": 2, "map_icon_id": 26, "active": 1, "name": "Test icon", "description": "", "coordinates": "{\"lat\":54.948442387473655,\"lng\":23.94847869873047}", "created_at": "2016-06-26 16:33:46", "updated_at": "2016-06-26 16:37:17", "map_icon": { "id": 26, "path": "frontend/images/map_icons/543cec0b0e95d2.88837937.png", "width": "32.00", "height": "37.00" } } ] }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/get_map_icons
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Responses application/json
object | ||
items |
array[object]
Validation
{mapIcon} |
optional |
id | integer | optional |
path | string | optional |
width | string number | optional |
height | string number | optional |
status | integer | optional |
{ "items": [ { "id": 1, "path": "frontend/images/map_icons/543ccabd1373b8.41756394.png", "width": "32.00", "height": "37.00" }, { "id": 2, "path": "frontend/images/map_icons/543ccabd141637.00777195.png", "width": "32.00", "height": "37.00" }, { "id": 3, "path": "frontend/images/map_icons/543ccabd509796.35593817.png", "width": "32.00", "height": "37.00" }, { "id": 53, "path": "frontend/images/map_icons/test-2.png", "width": "32.00", "height": "37.00" }, { "id": 54, "path": "frontend/images/map_icons/velocimeter.png", "width": "32.00", "height": "37.00" } ], "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/add_map_icon
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body application/json
object
Validation
{mapIconPost} |
||
name | string | required |
description | string | optional |
map_icon_id | integer | required |
coordinates | oneOf | required |
object | optional | |
lat |
number
Validation
{LatLng} |
optional |
lng |
number
Validation
{LatLng} |
optional |
POST
/edit_map_icon
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body application/json
object | ||
id |
integer
Validation
{ObjectID} |
required |
name |
string
Validation
{mapIconPost} |
required |
description |
string
Validation
{mapIconPost} |
optional |
map_icon_id |
integer
Validation
{mapIconPost} |
required |
coordinates |
oneOf
Validation
{mapIconPost} |
required |
object | optional |
GET
/change_active_map_icon
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body
object | ||
id | integer | optional |
active | boolean | optional |
GET
/destroy_map_icon
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
map_icon_id | integer | required |
MODEL
mapIconPost
object | ||
name | string | required |
description | string | optional |
map_icon_id | integer | required |
coordinates | oneOf | required |
object | optional |
MODEL
mapIcon
object | ||
id | integer | optional |
path | string | optional |
width | string number | optional |
height | string number | optional |