Hi, I’m using the API Engine Hosted Service to build my API with Backendless, and I’m trying to figure out how can I make the parameters in the query to be optional.
I have a GET method which takes a String as a parameter, but I would like to make this parameter optional. Now in the console it says it is required.
I’ve tried to overload the method and make it like:
public SomeInfo getInfo (String myParam)
public SomeInfo getInfo ( )
But in the console I can only see the one with no params.
Can this be done?
For now I have created another method to get same behaviour:
public SomeInfo getAllInfo ()
But I’d like to know if this is possible. Thanks!