diff --git a/Ordering.http b/Ordering.http new file mode 100644 index 0000000..59b3256 --- /dev/null +++ b/Ordering.http @@ -0,0 +1,26 @@ +GET {{baseUrl}}/products?order=id.desc +?? status == 200 +?? js response.parsedBody[0].id == 77 +?? js response.parsedBody[76].id == 1 +### + +GET {{baseUrl}}/products?order=id.asc +?? status == 200 +?? js response.parsedBody[0].id == 1 +?? js response.parsedBody[76].id == 77 + +### +GET {{baseUrl}}/products?order=product_name.asc +?? status == 200 +?? js response.parsedBody[0].id == 17 +?? js response.parsedBody[76].id == 47 +?? js response.parsedBody[0].product_name startsWith A +?? js response.parsedBody[76].product_name startsWith Z + +### + GET {{baseUrl}}/products?order=product_name.desc +?? status == 200 +?? js response.parsedBody[0].id == 47 +?? js response.parsedBody[76].id == 17 +?? js response.parsedBody[0].product_name startsWith Z +?? js response.parsedBody[76].product_name startsWith A \ No newline at end of file