Exhibitor Image

Upload images that are tied to a specific Exhibitor. You must have the exhibitors ConventionPrivilege to manage this, or control an Exhibitor to manage images specific to that exhibitor. Exhibitor Images are accessed via /api/exhibitorimage.

Properties

See "Object Properties" in Introduction for basic shared properties.

Complete details in ExhibitorImageProperties. It also has these extra read-only properties:

image_uri

A link to the location where the image is stored, minus the protocol (ie https).

thumbnail_uri

A link to the location where a thumnail of the image is stored, minus the protocol (ie https).

Related Objects

See "Related Objects" in Introduction for how to use them.

exhibitor

The Exhibitor this exhibitor image belongs to.

Services

The services used to fetch and manipulate exhibitor images.

Search Exhibitor Images

This will search across all conventions. To search on a single convention see "Relationships" in Convention.

 GET /api/exhibitorimage
Optional Params
query

Searches a partial name.

Returns:

 {
    "paging" : {...},
    "items" : [
        {
          "id" : "xxx",
          "filename" : "pic.jpg",
          ...
        },
        ...
    ]
 }

Create / Upload Exhibitor Image

 POST /api/exhibitorimage
Required Params
exhibitor_id
file

This is a special field that only exists for uploading the image. It should be an encoded image in the POST body as multipart/form-data as specified in RFC-2388 (https://tools.ietf.org/html/rfc2388).

Optional Params
noresize

When you upload the image it will automatically be resized to 700px wide maintaining its aspect ratio. If you don't want a resize to occur then set this field to 1.

Returns the same as a normal read.

Read Exhibitor Image

 GET /api/exhibitorimage/xxx

Returns:

 {
   "id" : "xxx",
   "filename" : "pic.jpg",
   ...
 }

Update Exhibitor Image

 PUT /api/exhibitorimage/xxx

Returns the same as a normal read.

Delete Exhibitor Image

 DELETE /api/exhibitorimage/xxx

Returns:

 {
   "success" : 1
 }