AS a Server, | I want to search images by text
saraheisa opened this issue · comments
AC:
- Create
GET /search/images
endpoint that receives params:
Name | Description |
---|---|
query | search term |
page | Page number to retrieve (default = 1) |
per_page | Number of images to retrieve per page (default = 10) |
order_by | How images are ordered latest or oldest (default = latest) |
and user_id
in body
- Retrieve images that contain quey in
description
orname
values - Return an error message if no images found with this query
- If images found, return a descriptive response
{
"total": 50,
"total_pages": 10,
"images": []
}