Adding the ability to get app_name from URL for generate_svg and support it in api_casy view method