getAllTypes
Mengambil semua tipe.
Deskripsi
Metode ini mengambil semua objek dari tipe GeneralTypeEntity dari API. Ini mengembalikan sebuah Promise yang menyelesaikan menjadi array objek GeneralTypeEntity.
GeneralTypes.getAllTypes();
Contoh
Contoh minimal
const response = await GeneralTypes.getAllTypes();
Contoh respons
[
{
"id": 20,
"type": "service"
},
{
"id": 1,
"type": "product"
},
{
"id": 3,
"type": "error_page"
},
"..."
]
Skema respons
Skema: IGeneralTypesEntity[]
id: number
Id tipe.
contoh: 1
type: BlockType
Enum tipe.
contoh: "product", "category", "etc"