Business Gallery Model

Action

Method

Resource

Description

Get all

GET

/business/:business_id/gallery

Get gallery items.

Get

GET

/business/:business_id/gallery/:item_id

Get gallery item with id business_id and item_id.

Create

POST

/business/:business_id/gallery

Create a gallery item with business_id.

Update

PUT

/business/:business_id/gallery/:item_id

Update gallery item with business_id and item_id.

Delete

DELETE

/business/:business_id/gallery/:item_id

Delete gallery item with business_id and item_id.

The business model is composed of the following attributes:

Attribute

Type

Required

Description

type

integer

no, required to create.

The item's type.
1 for image.
2 for video.

file

base64 image, url image or file image.

no

The item's image.

video

string

no

The item's video, YouTube url.

title

string

no

The item's name.

description

string

no

The item's description.