Error getting data using REST API

0
Hi,        I am trying to get the list of data using REST API, but an error is throwing       java.net.URISyntaxException      Illegal character in query at index 49:      403 : forbidden   Thank you
asked
4 answers
2

URL encode your string before sending.

answered
2

Which character is at index 49 of your location string? It seems like it is not allowed.

answered
2

Thorsten is right. I think the problem is the blank space between OSG and Admiral. You need to URL encode it.

answered
0

Thank you for the reply

https://api.linescape.com/api/v1/vessels?name=OSG ADMIRAL, This is the String which I am passing in the URL

Trying to get the data from the thirdparty API. when passing the URL without any constrain it fetches the data, but after passing the String getting this error 

answered