test the application with ease using the commands below. If you want to prettify your output at the end of the shell command add the pipe using jq if installed like ./fixtures/post-order.sh | jq
. You can install jq using brew on mac brew install jq
.
create new order.
./fixtures/post-order.sh
create new random order.
./fixtures/post-random-order.sh
retrieve all orders.
./fixtures/get-orders.sh
retrieve a single order by id, replace $id
with the order id returned on create order.
./fixtures/get-order-by-id.sh "$id"
delete a single order by id, replace $id
with the order id returned on create order.
./fixtures/delete-order-by-id.sh "$id"
search orders by query, replace $query
with a valid property from the order like name, ingredient, and etc. This uses the search server to retrieve results.
./fixtures/search-order-by-query.sh `$query`
test rate limiter
./fixtures/test-rate-limit.sh