Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Query Filters to Get All Spots #27

Open
3 of 6 tasks
ChristoGrab opened this issue Sep 23, 2022 · 0 comments
Open
3 of 6 tasks

Add Query Filters to Get All Spots #27

ChristoGrab opened this issue Sep 23, 2022 · 0 comments

Comments

@ChristoGrab
Copy link
Owner

ChristoGrab commented Sep 23, 2022

Return spots filtered by query parameters.

  • Query parameters are accepted for page, size, minLat, maxLat,
    minLng, maxLng, minPrice, and maxPrice
  • Default values are provided for the page and size parameters
  • Successful response includes only spots in the database that meet the
    specified query parameters criteria.
  • Spot data returned includes the id, ownerId, address, city,
    state, country, lat, lng, name, description, price, createdAt,
    updatedAt, and previewImage for each spot
  • Successful response includes the page and size of the returned payload
  • Error response with status 400 is given when query parameter validations
    for the page, size, minLat, maxLat, minLng, maxLng, minPrice, or
    maxPrice are violated
@ChristoGrab ChristoGrab moved this from Backlog to Next Tasks in AirBnB API Sep 29, 2022
@ChristoGrab ChristoGrab moved this from Next Tasks to In Progress in AirBnB API Sep 29, 2022
@ChristoGrab ChristoGrab moved this from In Progress to Working Locally in AirBnB API Sep 30, 2022
@ChristoGrab ChristoGrab moved this from Working Locally to Deployed in AirBnB API Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Deployed
Development

No branches or pull requests

1 participant