REST Service input string misformating

REST Service input string misformating

  

Hello everyone

I have a question regarding inputs on rest services.

When I send a string to the input of a rest service, as part of the request url

ex.: localhost:9200/_search{querystring}

querystring="?sort=account_number:desc"

I always get a misformat when creating the endpoint

like this:
_search%3Fsort%3Daccount_number%3Adesc

should be:
_search?sort=account_number:desc

how can I solve this?


Thanks. 

Solution

Hi Kullboys,

Everything in the parameter is URL encoded. The proper URL in Service Studio should read:

_search?sort={sortparameter}

Where {sortparameter} is replaced by the Platform by the content of the actual Input Parameter "sortparameter".

Solution