Product service

Hierarchy

  • ProductService

Constructors

Properties

Methods

Constructors

  • Constructs product service

    Parameters

    • axiosInstance: AxiosInstance

      Axios instance

    Returns ProductService

Properties

axiosInstance: AxiosInstance

Axios instance

Methods

  • Returns product by its ID

    Parameters

    • id: number

      Product ID

    Returns Promise<Product>

    Product

  • Lists all products

    Returns Promise<Product[]>

    Products

Generated using TypeDoc