ruby - Rails-Api limits length of url -
when sending request rails app:
http://0.0.0.0:3334/v1/api/notebooks/users/verified/courses/none/files/asset-v1%3aedx%2bdemox%2bdemo_course%2btype%40asset%2bblock%40welcome_r__-_demo.ipynb
i notice params rails passes controller are:
parameters: {"username"=>"verified", "course"=>"none", "file"=>"asset-v1:edx+demox+demo_course+type@asset+block@welcome_r__-_demo"}
it has removed period, or .fileextension. realise because rails seems have set maximum length url. there way around this?
the last part of url pulled out params[:format]
. can avoid specifying path /*path
, putting format parameter on not big deal.
Comments
Post a Comment