I want to set a url as encoded url to REST API. The url I want to my route to look like this
Required: https://localhost:3000/api/v1/articles?url=https%3A%2F%2Frepository.dri.ie%2Fcatalog%2F5999pn33w&format=json
In the routes.rb I tried to set the route like this:
namespace 'api' do
 namespace 'v1' do
  resources :articles
  get 'articles/*url'  => 'articles#show' 
 end
end     
so my route look like this
http://localhost:3000/api/v1/articles/https://repository.dri.ie/catalog/5999pn33w
how can I make the url passed as encoded url?
 
    