nss-evening-cohort-12 / bangazon-api-medlenmage

bangazon-api-medlenmage created by GitHub Classroom
0 stars 1 forks source link

Jm product location #38

Closed medlenmage closed 3 years ago

medlenmage commented 3 years ago

Filter on location for products

Changes

Request

GET http://localhost:8000/products?location=Zhongshan Gets products from that location

Response

HTTP/1.1 201 OK

[
    {
        "id": 2,
        "name": "Golf",
        "price": 653.59,
        "number_sold": 1,
        "description": "1994 Volkswagen",
        "quantity": 4,
        "created_date": "2019-07-10",
        "location": "Zhongshan",
        "image_path": null,
        "average_rating": 0
    }
]

Testing

Description of how to test code...

Related Issues

medlenmage commented 3 years ago

this included my update to a previous branch for some reason as well.

medlenmage commented 3 years ago

i believe that fixed it