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

Search for mobile phones by title keyword

GET
localhost:5001/api/phones/getPhonesByTitle
Find all relevant mobile phones by title

Request

Query Params
text
string 
required
Example:
4g

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/getPhonesByTitle?text=4g'

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
number  | integer 
required
reviews
array [object {7}] 
required
_id
string 
required
reviewer
string 
required
rating
integer 
required
comment
string 
required
createdAt
string 
required
updatedAt
string 
required
hidden
string 
optional
updatedAt
string 
required
__v
integer 
required
Example
[]
Previous
Get the hot 5 mobile phones
Next
Shopping Cart Checkout
Built with