Group7
  1. phones
Group7
  • phones
    • Get a list of all phones
      GET
    • Get phone by id
      GET
    • Get the 5 phones that will sell out soon
      GET
    • Get the hot 5 mobile phones
      GET
    • Search for mobile phones by title keyword
      GET
    • Shopping Cart Checkout
      POST
    • Post mobile reviews (as a buyer)
      POST
    • Hide/Show Comments (as a buyer)
      PUT
    • Get details and quantities of phones purchased (as a buyer)
      POST
    • Get details of reviewed phones (as a buyer)
      POST
    • Get reviewed phones and corresponding reviews (as a buyer)
      POST
    • View phones for sale and reviews (as a seller)
      POST
    • Enable/disable mobile phones (as a seller)
      PUT
    • Change mobile phone information
      PUT
    • createPhone
      POST
    • Delete phone
      DELETE
    • Sellers view phones for sale
      POST
    • Get phone by id for list
      GET
  • users & auth
    • Registration
      POST
    • Verify email address
      GET
    • Login
      POST
    • Forgot your password (enter your email address)
      POST
    • Reset password
      PUT
    • Obtaining user information
      GET
    • Modify user information
      PUT
    • Reset password
      PUT
  1. phones

Get details of reviewed phones (as a buyer)

POST
localhost:5001/api/phones/getReviewedPhones
The phone must have been purchased and reviewed for a return to be available.

Request

Header Params
Authorization
string 
required
Example:
Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0NjA4ZmNhNWQ0Yzg3ZTRiYWJmMWU2OCIsImlhdCI6MTY4NDE3MzMxNywiZXhwIjoxNjg2NzY1MzE3fQ.YeiUqD2IofYvqkwjn10sUFfgwRgeYHknb0N-2ai7xs4

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'localhost:5001/api/phones/getReviewedPhones' \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0NjA4ZmNhNWQ0Yzg3ZTRiYWJmMWU2OCIsImlhdCI6MTY4NDE3MzMxNywiZXhwIjoxNjg2NzY1MzE3fQ.YeiUqD2IofYvqkwjn10sUFfgwRgeYHknb0N-2ai7xs4'

Responses

🟢200OK
application/json
Body
array of:
_id
string 
optional
title
string 
optional
brand
string 
optional
image
string 
optional
stock
integer 
optional
seller
string 
optional
price
number 
optional
reviews
array [object {7}] 
optional
_id
string 
required
reviewer
string 
required
rating
integer 
required
comment
string 
required
createdAt
string 
required
updatedAt
string 
required
hidden
string 
optional
updatedAt
string 
optional
__v
integer 
optional
Example
[
  {
    "_id": "645a0a8ca81a402de8668984",
    "title": "\"CLEAR CLEAN ESN\" Sprint EPIC 4G Galaxy SPH-D700*FRONT CAMERA*ANDROID*SLIDER*QWERTY KEYBOARD*TOUCH SCREEN",
    "brand": "Samsung",
    "image": "/Samsung.jpeg",
    "stock": 6,
    "seller": "5f5237a4c1beb1523fa3dbac",
    "price": 199.99,
    "reviews": [
      {
        "_id": "6462324e8e2cb4f965428307",
        "reviewer": "5f5237a4c1beb1523fa3dabf",
        "rating": 5,
        "comment": "I feel so LUCKY to have found this used (phone to us & not used hard at all), phone on line from someone who upgraded and sold this one. My Son liked his old one that finally fell apart after 2.5+ years and didn't want an upgrade!! Thank you Seller, we really appreciate it & your honesty re: said used phone.I recommend this seller very highly & would but from them again!!",
        "createdAt": "2023-05-14T16:28:03.100Z",
        "updatedAt": "2023-05-14T16:28:03.100Z"
      },
      {
        "_id": "6462324e8e2cb4f965428308",
        "reviewer": "5f5237a4c1beb1523fa3dab6",
        "rating": 4,
        "comment": "nice phone, nice up grade from my pantach revue. Very clean set up and easy set up. never had an android phone but they are fantastic to say the least. perfect size for surfing and social media. great phone samsung",
        "createdAt": "2023-05-14T16:28:03.100Z",
        "updatedAt": "2023-05-14T16:28:03.100Z"
      },
      {
        "_id": "6462324e8e2cb4f965428309",
        "reviewer": "5f5237a4c1beb1523fa3da1f",
        "rating": 5,
        "comment": "Very pleased",
        "createdAt": "2023-05-14T16:28:03.101Z",
        "updatedAt": "2023-05-14T16:28:03.101Z"
      },
      {
        "reviewer": "645d3feb6b2d2ae49ccb50bf",
        "rating": 3,
        "comment": "第1次测试!!!",
        "_id": "64621b34ab5310e6dcffd515",
        "createdAt": "2023-05-15T11:44:52.430Z",
        "updatedAt": "2023-05-15T12:19:50.434Z",
        "hidden": "true"
      }
    ],
    "updatedAt": "2023-05-15T13:23:18.512Z",
    "__v": 5
  }
]
Previous
Get details and quantities of phones purchased (as a buyer)
Next
Get reviewed phones and corresponding reviews (as a buyer)
Built with