REST API -Input issues

0
Hello Experts, I have consumed REST API (Consume a REST Service | Mendix Documentation) successfully. But I am facing an issue where I can only able to add inputs without space, if there is a space I am getting an error.   End point url : https://en.wikipedia.org/api/rest_v1/page/summary/{Input}   Example : Input 1 – SampleTest (without space) Input 2 – Sample Test (with space – getting error)   Answers are really much appreciated!
asked
1 answers
3

Try replacing spaces with %20 or an underscore. You could maybe also urlencode your input first.

https://en.wikipedia.org/api/rest_v1/page/summary/The_Hague

https://en.wikipedia.org/api/rest_v1/page/summary/The%20Hague

answered