Closed ericssy closed 4 years ago
tested with
(venv) MacBook-Pro-49:backend ShenSiyuan$ curl -X POST -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgzOTY0MzgsInVpZCI6ImZhM2I1NjI1LWY2Y2UtNDU1Yi1iNTdlLTE2ODk4YThiYjE2YyIsInJvbGUiOiJuYXZpZ2F0b3IifQ.I8MsfuBg4bSOESThzRjH5dOaTc4D5u2-KphIEwXUP-4" -H "accept: application/json" -H "Content-Type: application/json" -d "{"pagination" : {"results_per_page" : 1, "page" : 1}, "searchFields" : {"zip_code" : ["22903", "22904"], "bedrooms" : 1, "date_available" : "2020-12-01"}}" http://localhost:5000/property/search
{"pagination":{},"results":[{},{},{}]}
fixed the search api and unit tests failure