title: How to test Symfony FOSRestBundle routes by using Postman. How to configure FOSRestBundle
body: <p>Good day. 
  Git <a href="https://bitbucket.org/fonjeekay/resttest/src/fe118b493c01b70c570a6997db100e4eb4d36358/project2/?at=master" rel="nofollow noreferrer">repository</a>.
  I have next routes but i can't get results of this routes.
  <code>php console debug:route</code></p>
  
  <pre><code>_wdt                       ANY      ANY      ANY    /_wdt/{token}                      
    _profiler_home             ANY      ANY      ANY    /_profiler/                        
    _profiler_search           ANY      ANY      ANY    /_profiler/search                  
    _profiler_search_bar       ANY      ANY      ANY    /_profiler/search_bar              
    _profiler_info             ANY      ANY      ANY    /_profiler/info/{about}            
    _profiler_phpinfo          ANY      ANY      ANY    /_profiler/phpinfo                 
    _profiler_search_results   ANY      ANY      ANY    /_profiler/{token}/search/results  
    _profiler                  ANY      ANY      ANY    /_profiler/{token}                 
    _profiler_router           ANY      ANY      ANY    /_profiler/{token}/router          
    _profiler_exception        ANY      ANY      ANY    /_profiler/{token}/exception       
    _profiler_exception_css    ANY      ANY      ANY    /_profiler/{token}/exception.css   
    _twig_error_test           ANY      ANY      ANY    /_error/{code}.{_format}           
    get_users_all              GET      ANY      ANY    /v1/users/all.{_format}            
    get_user                   GET      ANY      ANY    /v1/users/{id}.{_format}
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/YJLZL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YJLZL.png" alt="enter image description here"></a></p>
  
  <p>I need to configure config and routes but i stuck with this.
  this is FOS controller file:</p>
  
  <pre><code>/**
   * Class UsersController
   * @package AppBundle\Controller
   */
  class UsersController extends FOSRestController
  {
      /**
       * @return \Symfony\Component\HttpFoundation\Response
       * @View(serializerGroups={"user"})
       */
      public function getUsersAllAction()
      {
          $users = $this-&gt;getDoctrine()-&gt;getRepository('AppBundle:User')-&gt;findAll();
  
          $view = $this-&gt;view($users, 200);
          return $this-&gt;handleView($view);
      }
  
  
      /**
       * @param $id
       * @return \Symfony\Component\HttpFoundation\Response
       * @View(serializerGroups={"user"})
       */
      public function getUserAction($id)
      {
          $user = $this-&gt;getDoctrine()-&gt;getRepository('AppBundle:User')-&gt;find($id);
  
          if (!$user instanceof User) {
              throw new NotFoundHttpException('User not found');
          }
  
          $view = $this-&gt;view($user, 200);
          return $this-&gt;handleView($view);
      }
  }
  </code></pre>
  
  <p>How to solve? I already saw all symfony documentation, and i can't understand how to configure.</p>
  
  <p>Code on bitbucket (public):
  <code>git pull https://fonjeekay@bitbucket.org/fonjeekay/resttest.git</code></p>