Action | Method | Resource | Description |
---|---|---|---|
Get all | GET | /business/:business_id/extras | Get all extras with business_id . |
Get | GET | /business/:business_id/extras/:extra_id | Get extra with id business_id and extra_id . |
Create | POST | /business/:business_id/extras | Create a extra with business_id . |
Update | PUT | /business/:business_id/extras/:extra_id | Update menu with business_id and extra_id . |
Delete | DELETE | /business/:business_id/extras/:extra_id | Delete menu with business_id and extra_id . |
The extra model (product options group) is composed of the following attributes:
Attribute | Type | Required | Description | Whereable |
---|---|---|---|---|
name | string | no, required to create. | The extra's name. | Yes |
description | string | no | The extra's description. | Yes |
enabled | boolean | no | The extra's status. | Yes |
Restrictions for POST, PUT, DELETE products extras.
Products extras can only be created, updated or removed by user level 0 (Type: Administrator) and user level 2 (Type: Business owner).
- User type Administrator can create, update or remove any products extras for any business.
- User type Business owner can create, update or remove only products extra related to his business.