learning-project-01 / bookstore-app

3 stars 2 forks source link

save later api implementation #101

Closed rkpatra201 closed 8 months ago

rkpatra201 commented 8 months ago

After adding 2 different items to cart , below is my cart list.

The catalogItemId I have added to cart are: 253756624600300, 253352770658500

image

image

As a next step I will make 253352770658500 as SAVE_LATER.

curl request:

curl --location --request PUT 'localhost:8080/cart/253352770658500/state' \ --header 'X-AUTH-TOKEN: YjM3YTFmNjUtNmJiMi00ZTMyLWJlNGEtZDE0ZjI2YWNiNjli' \ --header 'Content-Type: application/json' \ --data '{ "catalogItemId": 253352770658500, "state": "SAVE_LATER" }'

image

After SAVE_LATER api execution, my CART_LIST has one item with SAVE_LATER image

image

Test updated and coverage is 100% image

image