CFL Pictures API

  • 2 minutes to read

APIPublisher = 'christiaens';
APIGroup = 'bocountdynamics';
APIVersion = 'v2.0';
EntityName = 'picture';
EntitySetName = 'pictures';

Met deze API is het mogelijk de afbeelding van contact, klant of leverancier op te vragen.

GET

method: GET
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/contact(contactid)/picture
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/customer(contactid)/picture
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/vendor(contactid)/picture

Entity:

{
    "@odata.context": "http://bc201-opleiding:7048/BC/api/Christiaens/BoCountDynamics/v2.0/$metadata#companies(9bf826fd-0be0-ec11-adf8-c90fab2a25c5)/contacts(260e87cd-2ce7-ec11-adf7-94f78238fd27)/picture/$entity",
    "@odata.etag": "W/\"JzE5OzQ2MTg2ODQwODM2MTY5NTcxNTQxOzAwOyc=\"",
    "id": "260e87cd-2ce7-ec11-adf7-94f78238fd27",
    "parentType": "Contact",
    "width": 0,
    "height": 0,
    "mimeType": "",
    "pictureContent@odata.mediaEditLink": "http://bc201-opleiding:7048/BC/api/Christiaens/BoCountDynamics/v2.0/companies(9bf826fd-0be0-ec11-adf8-c90fab2a25c5)/contacts(260e87cd-2ce7-ec11-adf7-94f78238fd27)/picture/pictureContent",
    "pictureContent@odata.mediaReadLink": "http://bc201-opleiding:7048/BC/api/Christiaens/BoCountDynamics/v2.0/companies(9bf826fd-0be0-ec11-adf8-c90fab2a25c5)/contacts(260e87cd-2ce7-ec11-adf7-94f78238fd27)/picture/pictureContent"
}

Body:

{
    "id": "260e87cd-2ce7-ec11-adf7-94f78238fd27",
    "parentType": "Contact",
    "width": 0,
    "height": 0,
    "mimeType": ""
}

DELETE

method: DELETE
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/contact(contactid)/picture Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/customer(contactid)/picture Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/vendor(contactid)/picture

UPDATE

method: PATCH
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/contact(contactid)/picture(pictureid)/content
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/customer(contactid)/picture(pictureid)/content
Url: https://server:port/serverinstance/api/Christiaens/BoCountDynamics/v2.0/companies(companyid)/vendor(contactid)/picture(pictureid)/content

Body: Raw picture binary data.