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