42 lines
1.0 KiB
HTTP
42 lines
1.0 KiB
HTTP
# @import ./PreScript.http
|
|
###
|
|
|
|
GET /products?order=id.desc
|
|
?? status == 200
|
|
?? js response.parsedBody[0].id == 77
|
|
|
|
?? js response.parsedBody[76].id == 1
|
|
###
|
|
|
|
GET /products?order=id
|
|
?? status == 200
|
|
?? js response.parsedBody[0].id == 1
|
|
?? js response.parsedBody[76].id == 77
|
|
|
|
###
|
|
|
|
GET /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 /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
|
|
|
|
###
|
|
|
|
GET /products?order=id.desc&unit_price=lt.10
|
|
?? status == 200
|
|
?? js response.parsedBody[0].id == 75
|
|
?? js response.parsedBody[10].id == 13
|
|
?? js response.parsedBody[0].product_name startsWith R
|
|
?? js response.parsedBody[10].product_name startsWith K
|