vaibhavi-roy / Reloop

0 stars 1 forks source link

Backend API and Expectations - For Client Side #3

Open UditDe opened 2 months ago

UditDe commented 2 months ago

Initially, we have to create dummy products on the DB (at least 5 to 6)

APIs - 5

api/post/login

request to server

{product_id : string, order_id : string}

response from server

{msg : "success"}

api/post/return

request to server

{
product_id : string,
order_id : string
image_link : string,
reason : string,
method : string,
address : { address : string, city : string, state : string, pincode : number, district : string }
}

response from server

{msg : "success"}

api/post/exchange

{
product_id : string,
order_id : string,
image_link : string,
reason : string,
address : { address : string, city : string, state : string, pincode : number, district : string }
}

response from server

{msg : "success"}

api/get/return/time_line

request from server

{
product_id : string
order_id : string
}

response from server

{
section : "return",
return_initiate_date : date,
return_pickup_date : date,
refund_Initate_date : date / "processing",
refund_complete : "completed" / "null",
}

api/get/exchange/time_line

request from server

{
product_id : string
order_id : string
}

response from server

{
section : "exchage",
exchange_initiate_date : date,
exchange_pickup_date : date,
newproduct_delivery_inprogress : true/false,
newproduct_Intransit : {date, "In progress"/"done"},
newproduct_delivery_status: {date, "delivered / "In progress"}
}

log out can be handled from frontend

Devleena2003 commented 2 months ago

First 3 done , 2 left