free bootstrap theme

Varlik API

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

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

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

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


Get All Varliklar | URL
Syntax:

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

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


Get One Varlik | Authenticated
Syntax:

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

GET http://localhost/OfisplanX/ProjeIsim/api/Varlik/20191104110235817
GET https://domain.com/OfisplanX/AnaOfis/api/Varlik/20180921194845701


Get One Varlik | URL
Syntax:

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

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


Result (two records)
[
{
"varlik_id": "20180921201109366",
"mekan_id": "4",
"name": "Printer 12",
"kategori": "Printer",
"top": "1392",
"left": "613",
"width": "-1",
"height": "-1",
"marka": "Canon",
"model": "",
"seri no": "77756565",
"edinim tarihi": "2018-12-06",
"telefon no": "",
"konferans": "False",
"seslimesaj": "False",
"fotokopi": "False",
"personel_id": "",
"picalign": "",
"customclickurl": "",
"key": "",
"latitude": "",
"longitude": ""
},
{
"varlik_id": "2018092217102034",
"mekan_id": "4",
"name": "Projector 01",
"kategori": "Projector",
"top": "96",
"left": "2489",
"width": "-1",
"height": "-1",
"marka": "Benq",
"model": "",
"seri no": "67867444",
"edinim tarihi": "2018-09-24 10:16:13 AM",
"telefon no": "",
"konferans": "False",
"seslimesaj": "False",
"fotokopi": "False",
"personel_id": "",
"picalign": "",
"customclickurl": "",
"key": "",
"latitude": "",
"longitude": ""
}
]
POST (create)
Yeni bir kayıt oluştururken, benzersiz varlik kimliği otomatik olarak oluşturulur ve parametre olarak dahil edilmesi gerekmez.

POST | Authenticated
Syntax:

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

POST http://localhost/OfisplanX/ProjeIsim/api/Varlik/?name=Printer17&Manufacturer=Canon
POST https://domain.com/OfisplanX/ProjeIsim/api/Varlik/?name=Microwave&kategori=Kitchen&size=medium
Result
[
{
"id": "2020020726122423"
},
{
"status": "Varlik kayit eklendi"
}
]
PUT (update)
PUT | Authenticated
Syntax:

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

PUT http://localhost/OfisplanX/ProjeIsim/api/Varlik/2020020679547848?status=broken&dateupdated=2020-02-07
PUT https://domain.com/OfisplanX/AnaOfis/api/Varlik/2020020619325472?personel_id=2018928791&name=Personal Printer
Result
[
{
"status": "Varlik kayit eklendi"
}
]
DELETE
Delete | Authenticated
Syntax:

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

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