-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjavaServices.txt
More file actions
58 lines (35 loc) · 1 KB
/
javaServices.txt
File metadata and controls
58 lines (35 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#by Nawaz
Product service:
1. For the view of all products ( first five products displayed based on ID )
GET : https://products-service.cfapps.io/products/0
0 - is the page number
2. For the view of one product
GET : https://products-service.cfapps.io/product/{productId}
3. For the products after applying filter:
POST : https://products-service.cfapps.io/products
i/p filter params can be any of the below paarams:
{
"name": "shirt",
"brand": ["scullers"],
"size": ["Medium"],
"category": ["Mens"],
"color": ["green"]
}
Cart Service:
1. To view the cart products of user
GET : https://carts-service.cfapps.io/cart/{username}
2. Add item to cart :
POST : https://carts-service.cfapps.io/cart
payload:
{
"userId" : "syed"
"userSelectedProducts" : [{
"productId" : "131",
"productName" : "shirt",
"productQuantity" : 1,
"productCost" : 500
}],
"totalCartAmount" : 1000
}
3. remove the product from cart :
DELETE : https://carts-service.cfapps.io/cart/{userId}/{productId}