api: implement query parameters

The query parameters [here](https://github.com/coreos/fleet/blob/master/Documentation/api-v1-alpha.md#request-5) need to be implemented.