Skip to content

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

@lippoldm

Description

@lippoldm

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions