Versions Compared

Key

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

...

Firma Listesi Alma (GET)


Code Block
languagexml
titleFirma Listesi (GET)
linenumberstrue
collapsetrue
Response) GET http://localhost/LogoCrmRest//api/v1.0/firms?SessionId=fff63884-ffe6-41e4-b15f-e77f9648720d
Code Block
languagexml
titleFirma Listesi Response
linenumberstrue
collapsetrue
{
    "Meta": {
        "href": "localhost/LogoCrmRest/api",
        "mediaType": "application/json; charset=UTF-8",
        "fullPath": "/LogoCrmRest/api/v1.0/firms",
        "apiVersion": "1"
    },
    "Result": 1,
    "Message": "",
    "Items": [
        {
            "Oid": "25284038-b655-4bd9-ae00-e0c95d07390d",
            "FirmCode": "00000001",
            "FirmTitle": "logo",
            "InUse": true,
            "IsPersonCompany": true,
            "PersonId": null,
            "TaxOffice": null,
            "TaxNo": null,
            "EmailAddress1": null,
            "EmailAddress2": null,
            "EmailAddress3": null,
            "WebAddress1": null,
            "WebAddress2": null,
            "Latitude": 0,
            "Longtitude": 0,
            "Notes": null,
            "Tags": null,
            "NotifyUsers": null,
            "PhotoBase64": "iVBORw0KGgoAAAANSUhEUgAAAHg.....
            "_CreatedDateTime": "2017-12-05T15:47:24.533",
            "_LastModifiedDateTime": "2017-12-05T15:47:24.537",
            "RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
            "RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
        },
        {
            "Oid": "519fcb53-6d8d-4e8f-8ee1-b42844e46250",
            "FirmCode": "00000003",
            "FirmTitle": "logo elektronik",
            "InUse": true,
            "IsPersonCompany": false,
            "PersonId": null,
            "TaxOffice": null,
            "TaxNo": null,
            "EmailAddress1": null,
            "EmailAddress2": null,
            "EmailAddress3": null,
            "WebAddress1": null,
            "WebAddress2": null,
            "Latitude": 0,
            "Longtitude": 0,
            "Notes": null,
            "Tags": null,
            "NotifyUsers": null,
            "PhotoBase64": "iVBORw0KGgoAAAA....
            "_CreatedDateTime": "2017-12-05T15:47:50.07",
            "_LastModifiedDateTime": "2017-12-05T15:47:50.07",
            "RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
            "RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
        }
    ]
}

...

"Oid" sistem tarafından otomatik olarak oluşturulmaktadır. Aşağıdaki gibi bir tanım ile firma eklenebilir.

Code Block
languagexml
titlePOST http://localhost/LogoCrmRest//api/v1.0/firms?SessionId=fff63884-ffe6-41e4-b15f-e77f9648720d
Code Block
languagexml
titleFirma Ekleme (Body)
linenumberstrue
collapsetrue
{
            "FirmCode": "00000004",
            "FirmTitle": "REST Firm",
            "InUse": true,
            "IsPersonCompany": true,
            "PersonId": null,
            "TaxOffice": null,
            "TaxNo": null,
            "EmailAddress1": null,
            "EmailAddress2": null,
            "EmailAddress3": null,
            "WebAddress1": null,
            "WebAddress2": null,
            "Latitude": 0,
            "Longtitude": 0,
            "Notes": null,
            "Tags": null,
            "NotifyUsers": null,
            "PhotoBase64": "iVBORw0KGgoAAA...",
            "_CreatedDateTime": "2017-12-05T15:47:24.533",
            "_LastModifiedDateTime": "2017-12-05T15:47:24.537",
            "RecordCreateInfo": "System Administrator, 05.12.2017 15:47",
            "RecordLastUpdateInfo": "System Administrator, 05.12.2017 15:47"
}

...