[x] Query parameters are accepted for page, size, minLat, maxLat, minLng, maxLng, minPrice, and maxPrice
[x] Default values are provided for the page and size parameters
[x] Successful response includes only spots in the database that meet the specified query parameters criteria.
[x] Spot data returned includes the id, ownerId, address, city, state, country, lat, lng, name, description, price, createdAt, updatedAt, and previewImage for each spot
[x] Successful response includes the page and size of the returned payload
[x] Error response with status 400 is given when query parameter validations for the page, size, minLat, maxLat, minLng, maxLng, minPrice, or maxPrice are violated
Return spots filtered by query parameters.
page
,size
,minLat
,maxLat
,minLng
,maxLng
,minPrice
, andmaxPrice
page
andsize
parametersid
,ownerId
,address
,city
,state
,country
,lat
,lng
,name
,description
,price
,createdAt
,updatedAt
, andpreviewImage
for each spotpage
andsize
of the returned payloadpage
,size
,minLat
,maxLat
,minLng
,maxLng
,minPrice
, ormaxPrice
are violated