title: Tesing Laravel API Routes using POSTMAN
body: <p>I am very sorry if my question sounds foolish. I am new to Laravel. I develop some API in Laravel to be used in Angular, but a bit confused about what to type in POSTMAN in order to test the APIs. The project name is '<strong>ntiapi</strong>'</p>
  
  <p>I have written the API in the Controller. Also, I have done the api.php in routes</p>
  
  <p><strong>api.php</strong></p>
  
  <pre class="lang-php prettyprint-override"><code>
  Route::post('/register', 'AuthController@register');
  
  Route::post('/login', 'AuthController@login');
  
  Route::post('/logout', 'AuthController@logout');
  
  Route::get('/tasks', 'TaskController@index')-&gt;name('tasks.index');
  
  Route::post('/tasks', 'TaskController@store')-&gt;name('tasks.store');
  
  Route::get('/tasks/{task}', 'TaskController@show')-&gt;name('tasks.show');
  
  Route::put('/tasks/{task}', 'TaskController@update')-&gt;name('tasks.update');
  
  Route::delete('/tasks/{task}', 'TaskController@destroy')-&gt;name('tasks.destroy');
  
  Route::middleware('auth:api')-&gt;get('/user', function (Request $request) {
      return $request-&gt;user();
  });
  </code></pre>
  
  <p>I have this <code>http://localhost:ntiapi/api/</code></p>
  
  <p>How do I add each of the routes to <code>http://localhost:ntiapi/api/</code>
  in order to test the api on the POSTMAN. I mean the complete url. For example <code>http://localhost:ntiapi/api/login</code>.</p>