Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Logo CRM Tarafından Sunulan Kaynaklar

Logo CRM REST Kaynağı (Resource)Service Arayüzleri

Logo REST Sunucusu


Info
titleDefault Kurulum

http://localhost/LogoCrmRest/

...

Warning

Logo CRM de tanımlı bir durumun destek kaydı içinde gönderilmesi zorunludur.

Comment (GET)

Yorumları listelemek için; 

GET isteği ile http://localhost/LogoCRMRest/api/v1.0/comments/ObjectKey?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862 URL i kullanılır. Buradaki "ObjectKey" parametresi yorumları listelenmek istenilen kaydın ObjectKey'idir. 

...

http://localhost/LogoCRMRest/api/v1.0/comments/5020baaf-7482-4a76-8119-9e798d10a3d2?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862


Comment (POST)

Yorum eklemek için; 

POST isteği ile http://localhost/LogoCRMRest/api/v1.0/comments?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862 URL i kullanılır. Body kısmındaki zorunlu alanlar aşağıdaki şekildedir. Burada "content" eklenmek istenilen yorum, "object id" hangi nesneye yorum eklenmek isteniyorsa onun Oid bilgisi, "moduleName" hangi module eklenecekse onun adıdır. 


Code Block
{ 
    "content": "rest ile yorum", 
    "created": "2019-02-20 08:53:04.573", 
    "modified": "2019-02-20 08:53:04.573", 
    "moduleName": "MT_Activity", 
    "objectId": "92c0b194-f24c-4c30-a64d-cc0382b8300b" 
}
Info

Yorum beğenmek için; 
POST isteği ile  http://localhost/LogoCRMRest/api/v1.0/comments/upVoteComment?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862 URL i kullanılır. Body ise 


    "objectId": "7b4da874-8b56-41e9-9b57-f8813889aeae", 
    "id" : "1" 

şeklindedir. Burada objectId hangi nesne olduğunu ve id ise hangi yorum olduğunu belirtir. Bu parametrelere bakılarak yorum beğenilir veya daha önce beğenilmiş ise beğeni geri alınır. 

Ön koşul olarak kullanıcının login olup sessionId aldığı kabul edilmiştir. Ayrıca hem rest hem de web için yorum fonksiyonları test edilirken id lerin veritabanına da doğru kaydedildiğinden emin olunmalıdır.


Comment (PUT)

Yorum güncellemek için; 

PUT isteği ile http://localhost/LogoCRMRest/api/v1.0/comments?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862 URL i kullanılır. Body ise aşağıdaki şekildedir. Burada content yorumun düzenlenen hali, objectId düzeltilecek nesnenin Oid bilgisi, id ise hangi yorumun düzeltileceğini belirtir. 


Code Block
{ 
    "content": "yorum ekleme düzenlendi", 
    "objectId": "6c65e7cf-aac8-4df7-b7ec-7b24e2f3ece3", 
    "id" : "1" 
} 

Comment (DELETE)

Yorum silmek için; 
DELETE isteği ile http://localhost/LogoCRMRest/api/v1.0/comments?sessionId=04cfad92-0f1f-4199-a1bb-f6cfb7f75862 URL i kullanılır. Body ise aşağıdaki şekildedir. Burada objectId hangi nesne olduğunu ve id ise hangi yorum olduğunu belirtir. Bu parametrelere bakılarak silme işlemi yapılır. 


Code Block
{ 
    "objectId": "6c65e7cf-aac8-4df7-b7ec-7b24e2f3ece3", 
    "id" : "1" 
} 


Logout

Code Block
titlePOST http://localhost/LogoCrmRest/api/v1.0/logout?sessionid=74b41055-e877-407b-80e8-cf06ea1d7d9f
linenumberstrue
collapsetrue
{
    "Result": 1,
    "Message": ""
}

...