MakeNewChat
Create a chat with another user. If a chat with that data already exists, returns the data from that chat.
POST
/chats
curl \
--request POST 'https://garden-to-yours.herokuapp.com/chats' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"idProduct":"string"}'
Request examples
{
"idProduct": "string"
}
Response examples (201)
{
"_id": "string",
"productId": "string",
"sellerId": "string",
"buyerId": "string",
"deletedBySeller": true,
"deletedByBuyer": true
}