We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given an endpoint has optional args mapped to query or header params...
@GET("/something") @Queries({ ping: 'pong' }) async getSomethingWithOptionalQuery(@Query('since') since?: string, @QueryMap filters?: Record<string, string>): Promise<Response> { return <Response>{} };
Request passing some optional args service.getSomethingWithOptionalQuery('foo', { fizz: 'buzz' })
service.getSomethingWithOptionalQuery('foo', { fizz: 'buzz' })
/something?ping=pong&since=foo&fizz=buzz
Request again with no optional args service.getSomethingWithOptionalQuery()
service.getSomethingWithOptionalQuery()
/something?ping=pong
Same occurs with optional headers
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Given an endpoint has optional args mapped to query or header params...
Request passing some optional args
service.getSomethingWithOptionalQuery('foo', { fizz: 'buzz' })
/something?ping=pong&since=foo&fizz=buzz
Request again with no optional args
service.getSomethingWithOptionalQuery()
/something?ping=pong&since=foo&fizz=buzz
/something?ping=pong
Same occurs with optional headers
The text was updated successfully, but these errors were encountered: