32 lines
771 B
HTTP
32 lines
771 B
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 |