The drop-down options are normally used as zones or neighborhoods but can be used as any other option for a city. For example, schools, companies, hotels or any other search style on your ordering system.
Action | Method | Resource | Description |
---|---|---|---|
Get all |
|
| Get all dropdown options |
Get |
|
| Get dropdown option with id |
Create |
| `/dropdownoptions | Create a dropdown option |
Update |
|
| Update dropdown option with |
Delete |
|
| Delete dropdown option with |
The dropdown option model is composed of the following attributes:
Attribute | Type | Required | Description | Whereable |
---|---|---|---|---|
city_id | integer | no, required to create. | The dropdown option's city. (City ID) | Yes |
name | string | no, required to create. | The dropdown option's name. | Yes |
enabled | boolean | no | The dropdown option's status. | Yes |
Dropdown options request restrictions
POST, PUT and DELETE request only can be made by user level 0 (Type: Administrator)