Skip to content
New issue

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

Adding a random parameter and value to the request uri #96

Open
lippoldm opened this issue Oct 7, 2021 · 0 comments
Open

Adding a random parameter and value to the request uri #96

lippoldm opened this issue Oct 7, 2021 · 0 comments

Comments

@lippoldm
Copy link

lippoldm commented Oct 7, 2021

Hi, i am using your client and so far it ist working great.
However i really need to add a random parameter and value to the request uri. Something like "?parmeter=value" right after the from()-method otherwise the API will not provide every entity i need.
Is there a way to provide custom parameters and values or a quick way to "patch" the generated uri?

the uri i need would look like this
(httpsaddressoftheapi)/(Entityname)?parameter=value&?(selectstatement)....

Ok if found a dirty workaround. I just put the whole requeststring into the from((httpsaddressoftheapi)/(Entityname)?parameter=value&?(selectstatement)....) function.
Defeats the purpose of the Library but i can at least use the other convinience features like toArray() for now.

I also found out that the behaviour of the API i consume is in line with the OData Conventions:
5.2 Custom Query Options

It would be nice if the Library would support this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants