GetMessages

GET /chats/{chatId}

Return a chat

Path parameters

  • chatId string Required

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • _id string Required
    • productId string Required

      Product ID

    • sellerId string Required

      User ID

    • buyerId string Required

      User ID

    • deletedBySeller boolean
    • deletedByBuyer boolean
  • 403

    Forbidden

  • 404

    Not Found

  • 500

    Internal Server Error

GET /chats/{chatId}
curl \
 --request GET 'https://garden-to-yours.herokuapp.com/chats/{chatId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "_id": "string",
  "buyerId": "string",
  "sellerId": "string",
  "productId": "string",
  "deletedByBuyer": true,
  "deletedBySeller": true
}