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 the hot 5 mobile phones

GET
localhost:5001/api/phones/hot

Request

None

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 GET 'localhost:5001/api/phones/hot'

Responses

🟢200ok
application/json
Body
array of:
_id
string 
required
title
string 
required
brand
string 
required
image
string 
required
stock
integer 
required
seller
string 
required
price
integer  | number 
required
reviews
array [object {3}] 
required
reviewer
string 
required
rating
integer 
required
comment
string 
required
average_rating
integer  | number 
required
Example
[{"_id":"645a0a8ca81a402de866898b","title":"Sam Galaxy J7(2016) Dual J7108 4G 16GB Gold","brand":"Samsung","image":"/Samsung.jpeg","stock":3,"seller":"5f5237a4c1beb1523fa3db4d","price":231,"reviews":[{"reviewer":"5f5237a4c1beb1523fa3daec","rating":5,"comment":"It works excellent for my needs"},{"reviewer":"5f5237a4c1beb1523fa3da44","rating":5,"comment":"This phone is nothing but #AWESOME. The picture quality alongside with the initial device itself is great. To be honest, it's worth the price and even my friends like the phone."},{"reviewer":"5f5237a4c1beb1523fa3db74","rating":5,"comment":"Excellent!! Phone from Samsung. worth of money. As this is the latest 2016 edition which come's with almost new features."}],"average_rating":5},{"_id":"645a0a8ca81a402de86689af","title":"AT&T Motorola RAZR V3xx No Contract Cell Phone 3G","brand":"Motorola","image":"/Motorola.jpeg","stock":9,"seller":"5f5237a4c1beb1523fa3da9b","price":179.1,"reviews":[{"reviewer":"5f5237a4c1beb1523fa3da2b","rating":5,"comment":"Very excited by my purchase! I replaced a worn out Motorola Razr with this one and was very pleased to find it in great shape for a used phone. It also arrived much sooner than I expected."},{"reviewer":"5f5237a4c1beb1523fa3da82","rating":5,"comment":"I bought this as a replacement phone for my father who doesn't want a smart phone. He's with AT&T and even if you disable a smartphone's data connection you still have a monthly headache when they charge you for having a smartphone."},{"reviewer":"5f5237a4c1beb1523fa3db0b","rating":4,"comment":"Although this is a old style phone I have had 3 of them over the years. They are easy to use & reliable,& have all the functions I currently need in a cell phone."}],"average_rating":4.666666666666667},{"_id":"645a0a8ca81a402de866899e","title":"'ATT Wireless LG CU720 Shine for in Red'","brand":"LG","image":"/LG.jpeg","stock":9,"seller":"5f5237a4c1beb1523fa3db5a","price":25.99,"reviews":[{"reviewer":"5f5237a4c1beb1523fa3db7c","rating":5,"comment":"all good"},{"reviewer":"5f5237a4c1beb1523fa3db24","rating":5,"comment":"Very happy with this phone ,,it almost looks brand new. arrived on time."},{"reviewer":"5f5237a4c1beb1523fa3db42","rating":4,"comment":"I love this phone; the Shine in general. This particular phone works well. It does shut off without notice. Overall, it's a great phone!"}],"average_rating":4.666666666666667},{"_id":"645a0a8ca81a402de8668987","title":"Galaxy S5 G900A Factory Unlocked Android Smartphone 16GB White","brand":"Samsung","image":"/Samsung.jpeg","stock":10,"seller":"5f5237a4c1beb1523fa3da77","price":222,"reviews":[{"reviewer":"5f5237a4c1beb1523fa3db2e","rating":5,"comment":"LOVE IT, IT BIG AND BOLD"},{"reviewer":"5f5237a4c1beb1523fa3da86","rating":5,"comment":"Great!!"},{"reviewer":"5f5237a4c1beb1523fa3da34","rating":3,"comment":"The phone works good but sometimes I don't get service."},{"reviewer":"5f5237a4c1beb1523fa3da3d","rating":5,"comment":"Great"},{"reviewer":"5f5237a4c1beb1523fa3db20","rating":5,"comment":"Love my new phone, lots of feature and the cost was much cheaper that at the phone store, I really saved a lot."},{"reviewer":"5f5237a4c1beb1523fa3dbae","rating":4,"comment":"The case was in good condition very thick and somewhat protective however when you are taking a picture around the circumference of the picture has a very white blurry look and when I remove the case I realize it was not like that, the case is so thick that the camera is so far Deep inside"},{"reviewer":"5f5237a4c1beb1523fa3da5f","rating":5,"comment":"I really like it! It has a lot of features and works perfect!"},{"reviewer":"5f5237a4c1beb1523fa3db30","rating":4,"comment":"The phone is in really good conditions, but I did had some disappointments with this phone. I bought it for my dad and as far as he likes it, it's okay for me. For the money that you pay, it's really good conditions. Thank you"},{"reviewer":"5f5237a4c1beb1523fa3daab","rating":4,"comment":"it's boring, bring apps, that i can not uninstall, its memory RAM is wasted"}],"average_rating":4.444444444444445},{"_id":"645a0a8ca81a402de86689a5","title":"Apple A1533 Unlocked iPhone 5S Smart Phone, 16 GB (White)","brand":"Apple","image":"/Apple.jpeg","stock":5,"seller":"5f5237a4c1beb1523fa3db4f","price":115,"reviews":[{"reviewer":"5f5237a4c1beb1523fa3db6a","rating":5,"comment":"Love it. Excellent condition and beautifully packaged.","createdAt":"2023-05-15T17:23:21.761Z","updatedAt":"2023-05-15T17:23:21.761Z"},{"reviewer":"5f5237a4c1beb1523fa3da57","rating":5,"comment":"Excellent purchasing experience. Item just as described, new and in original packaging. Speedy shipping too!","createdAt":"2023-05-15T17:23:21.762Z","updatedAt":"2023-05-15T17:23:21.762Z"},{"reviewer":"5f5237a4c1beb1523fa3db80","rating":1,"comment":"this cellphone scren is locked ,needed to enter pin , I don‘t know why ,anyonecan gime a advice?","createdAt":"2023-05-15T17:23:21.762Z","updatedAt":"2023-05-15T17:23:21.762Z"},{"reviewer":"5f5237a4c1beb1523fa3db68","rating":5,"comment":"Awesome phone, mine came and there were no scratches on it and it was 100% fully functional.","createdAt":"2023-05-15T17:23:21.762Z","updatedAt":"2023-05-15T17:23:21.762Z"},{"reviewer":"5f5237a4c1beb1523fa3db54","rating":5,"comment":"excellent","createdAt":"2023-05-15T17:23:21.763Z","updatedAt":"2023-05-15T17:23:21.763Z"},{"reviewer":"5f5237a4c1beb1523fa3db69","rating":5,"comment":"It's going great","createdAt":"2023-05-15T17:23:21.763Z","updatedAt":"2023-05-15T17:23:21.763Z"},{"reviewer":"5f5237a4c1beb1523fa3da93","rating":5,"comment":"Just the right phone","createdAt":"2023-05-15T17:23:21.763Z","updatedAt":"2023-05-15T17:23:21.763Z"},{"reviewer":"5f5237a4c1beb1523fa3db23","rating":4,"comment":"Very few scratches and works great. Wonderfully fast shipping and nice service.","createdAt":"2023-05-15T17:23:21.764Z","updatedAt":"2023-05-15T17:23:21.764Z"}],"updatedAt":"2023-05-15T17:23:23.717Z","average_rating":4.375}]
Modified at 2023-05-16 06:34:55
Previous
Get the 5 phones that will sell out soon
Next
Search for mobile phones by title keyword
Built with