title: How to display the symfony profiler for API request made in the browser?
body: <p>I'm developing a REST api with Symfony2 + FOSRest bundle.</p>
  
  <p>I would like to know if there is any way for a call to the api in dev mode (<code>app_dev.php</code>) from the browser (corresponding to a <code>Accept: text/html,application/xhtml+xml</code> header) to display the response in the "specified format", wrapped in html with the profiler provided by symfony.</p>
  
  <p>It would allow to debug calls to the api directly in the browser.</p>
  
  <hr>
  
  <p>Edit:
  I don't want to debug the HTTP request but the whole process (route matching, DB queries involved, etc). That's why I want to have access to the symfony profiler.</p>