Went through the documentation, couldn't find any.
How does one make an optional query param in aqueduct?
By wrapping an argument in curly brackets:
@Operation.get()
Future<Response> getAllCities({@Bind.header('x-api-key') String apiKey}) async
{}
This is documented here: http://aqueduct.io/docs/http/resource_controller/#optional-bindings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With