Dropdown Options Model

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

/dropdownoptions

Get all dropdown options

Get

GET

/dropdownoptions/:dropdownoption_id

Get dropdown option with id dropdownoption_id.

Create

POST

`/dropdownoptions

Create a dropdown option

Update

PUT

/dropdownoptions/:dropdownoption_id

Update dropdown option with dropdownoption_id.

Delete

DELETE

/dropdownoptions/:dropdownoption_id

Delete dropdown option with dropdownoption_id.

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)