title: HTTPS Status: 404 Not Found in rails REST api for all routes
body: <p>I am currently developing REST API using rails by following this tutorial <a href="http://apionrails.icalialabs.com/book/chapter_two" rel="nofollow noreferrer">http://apionrails.icalialabs.com/book/chapter_two</a>. I am using postman to test the routes but i am getting 404 response code for all actions.</p>
  
  <p><a href="https://i.stack.imgur.com/sLk40.png" rel="nofollow noreferrer">This is my available routes in screentshot</a></p>
  
  <p>This is the content of my routes file:</p>
  
  <pre><code>Rails.application.routes.draw do
       devise_for :users
       namespace :api, defaults: { format: :json },
              constraints: { subdomain: 'api'}, path: '/' do
  
          resources :users, :only =&gt; [:show, :create, :update, :destroy]
          resources :sessions, :only =&gt; [:create, :destroy]
     end
  end
  </code></pre>
  
  <p>I am using devise for authenticating the user.</p>