Skip to content

Latest commit

 

History

History
38 lines (36 loc) · 1.11 KB

FIXTURES.md

File metadata and controls

38 lines (36 loc) · 1.11 KB

fixtures

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.

POST order

create new order.

./fixtures/post-order.sh

create new random order.

./fixtures/post-random-order.sh

GET orders

retrieve all orders.

./fixtures/get-orders.sh

GET order by id

retrieve a single order by id, replace $id with the order id returned on create order.

./fixtures/get-order-by-id.sh "$id"

DELETE order by 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 order by query

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 limit

test rate limiter

./fixtures/test-rate-limit.sh