function getCategoryById
getCategoryById(id: string): Category

Returns category id, for updateCategory.

Parameters

id: string

Return Type

Throws

APIException

404 when there is no such category.

Usage

import { getCategoryById } from "api/services/category-service.ts";