getAllTypes
Getting all types.
Description
This method retrieves all objects of type GeneralTypeEntity from the API. It returns a Promise that resolves to an array of GeneralTypeEntity objects.
GeneralTypes.getAllTypes();
Examples
Minimal example
const response = await GeneralTypes.getAllTypes();
Example response
[
{
"id": 20,
"type": "service"
},
{
"id": 1,
"type": "product"
},
{
"id": 3,
"type": "error_page"
},
"..."
]
Response schema
Schema: IGeneralTypesEntity[]
id: number
Type id.
example: 1
type: Types
Types enum.
example: "product", "category", "etc"