easy site maker

Masa API

Masalar API
Ofisplan API, Masa kayıtlarıyla aşağıdakileri yapmanızı sağlar:

GET
Get All Masalar | Authenticated
Get All Masalar | URL
Get One Masa | Authenticated
Get One Masa | URL
Result (two records)
POST (create)
POST | Authenticated
Result
PUT (update)
PUT | Authenticated
Result
DELETE
Delete | Authenticated
Result
GET
Get All Masalar | Authenticated
Syntax:

GET {Domain}/OfisplanX/{ProjeIsim}/api/Masa
Örnek

GET http://localhost/OfisplanX/ProjeIsim/api/Masa
GET https://domain.com/OfisplanX/AnaOfis/api/Masa


Get All Masalar | URL
Syntax:

{Domain}/OfisplanX/{ProjeIsim}/api/Masa?apikey={APIKey}
Örnek

http://localhost/OfisplanX/ProjeIsim/api/Masa?apikey=aP2bjYAeeYrUx0hPYQ
https://domain.com/OfisplanX/AnaOfis/api/Masa?apikey=l4MZnM2Y58lwVgubQn


Get One Masa | Authenticated
Syntax:

GET {Domain}/OfisplanX/{ProjeIsim}/api/Masa/{id}
Örnek

GET http://localhost/OfisplanX/ProjeIsim/api/Masa/chzoer4gwqvv
GET https://domain.com/OfisplanX/AnaOfis/api/Masa/6lnnh96x6hj0


Get One Masa | URL
Syntax:

{Domain}/OfisplanX/{ProjeIsim}/api/Masa/{id}?apikey={APIKey}
Örnek

http://localhost/OfisplanX/ProjeIsim/api/Masa/6lnnh96x6hj0?apikey=aP2bjYAeeYrUx0hPYQ


Result (two records)
[
{
"masa_id": "xe1415dvpx6x",
"masaisim": "Masa 20",
"top": "1110",
"left": "1578",
"width": "-1",
"height": "-1",
"mekan_id": "201804280603417960",
"picalign": "top",
"kategori": "Masa",
"oturmayeri": "1",
"rezerveedilebilir": "True",
"telefon": "True",
"window": "True",
"bilgisayar": "True",
"monitor": "True",
"printer": "False",
"ethernet": "True",
"projektor": "False",
"ikram": "False",
"beyaztahta": "False",
"customclickurl": "",
"key": "",
"latitude": "",
"longitude": ""
},
{
"masa_id": "201504151233041939",
"masaisim": "Ofis 02",
"top": "295",
"left": "158",
"width": "-1",
"height": "-1",
"mekan_id": "4",
"picalign": "left",
"kategori": "Ofis",
"oturmayeri": "1",
"rezerveedilebilir": "True",
"telefon": "True",
"window": "True",
"bilgisayar": "True",
"monitor": "True",
"printer": "True",
"ethernet": "True",
"projektor": "False",
"ikram": "False",
"beyaztahta": "True",
"customclickurl": "",
"key": "",
"latitude": "",
"longitude": ""
}
]
POST (create)
Yeni bir kayıt oluştururken, benzersiz masa ID otomatik olarak oluşturulur ve parametre olarak dahil edilmesi gerekmez.

POST | Authenticated
Syntax:

POST {Domain}/OfisplanX/{ProjeIsim}/api/Masa/?{parameter1:value1}&{parameter2}:{value2}...
Örnek

POST http://localhost/OfisplanX/ProjeIsim/api/Masa/?masaisim=AC-323&telefon=True&oturmayeri=2
POST https://domain.com/OfisplanX/ProjeIsim/api/Masa/?masaisim=Shared Masa 4&rezerveedilebilir=True
Result
[
{
"id": "2020020726122423"
},
{
"status": "Masa kayit eklendi"
}
]
PUT (update)
PUT | Authenticated
Syntax:

PUT {Domain}/OfisplanX/{ProjeIsim}/api/Masa/{id}?{parameter1:value1}&{parameter2:value2}...
Örnek

PUT http://localhost/OfisplanX/ProjeIsim/api/Masa/2020020679547848?masaisim=TB-21
PUT https://domain.com/OfisplanX/AnaOfis/api/Masa/2020020619325472?rezerveedilebilir=False&Projector=False
Result
[
{
"status": "Masa kayit eklendi"
}
]
DELETE
Delete | Authenticated
Syntax:

DELETE {Domain}/OfisplanX/{ProjeIsim}/api/Masa/{id}
Örnek

DELETE http://localhost/OfisplanX/ProjeIsim/api/Masa/201711300130174407
DELETE https://domain.com/OfisplanX/AnaOfis/api/Masa/2020020630313932
Result
[
{
"status": "Masa kayit silindi"
}
]