matteofigus / api-benchmark

A node.js tool to benchmark APIs
MIT License
311 stars 35 forks source link

Query parameters as a function #9

Closed jeltok closed 9 years ago

jeltok commented 9 years ago

First of all thank you for creating the benchmark utility, I find it very useful.

My use case is benchmarking a search API endpoint. I am passing an arbitrary number of query parameters (e.g. /search?a1=b1&a2=b2&a3=b3) and performing a GET call.

I can see in docs that api-benchmark allows a function to generate payloads for each POST call. Would be great if we could have the same ability to dynamically generate/randomize query strings for GET calls.

matteofigus commented 9 years ago

Hi, thank you.

The thing you are asking for seems doable. I can try to tackle this asap.

jeltok commented 9 years ago

Sounds great! I am sure it will make the excellent utility even better :-)

dmyers commented 9 years ago

This was added with #19. :+1:

https://github.com/matteofigus/api-benchmark#query