Skip to content

Basket Service API Routes

Caner Sülüşoğlu edited this page Jul 22, 2022 · 5 revisions

/api/Basket

/getBasket

Herbir kullanıcının kendine ait sepetini getirir.

Request Format:

{
   
}

Response Format:

{
   Products: [
        {
            ProductId: int,
            ProductName: string,
            ProductPrice: decimal,
            ProductQuantity: int
        }
        ...
    ] 
}

/updateBasket

Sepete yeni bir ürün veya kullanıcı ekleme işlemi.

Request Format:

{
    UserBaskets: [
        UserId: {
            Products: [
                {
                    ProductId: int,
                    ProductName: string,
                    ProductPrice: decimal,
                    ProductQuantity: int
                }
                ...
            ]
        }...
   ]
}

Response Format:

{
   isSuccess: bool,
   Message: string
}

/deleteBasket

Kullanıcı kendine ait sepeti sıfırlar. (Siparişi veren tüm sepeti silebilecek.)

Request Format:

{
   
}

Response Format:

{
   isSuccess: bool,
   Message: string
}

/api/Checkout/

/checkoutBasket

Sepeti onayla sipariş servisine mesaj at.

Request Format:

{

}

Response Format:

{
   isSuccess: bool,
   Message: string
}

Clone this wiki locally