First ressource to catch for my ember app


Hello there

I’m completely new to ember (just few days). I have a project on rails with haml page for the moment and a api with json for client and probably ember. Actually on the website when you login you arrived on a page with a specific store. ‘’. All the ressources on the api are nested to the store ‘’ or ‘’. Some are probably gonna say it’s a wrong design, you are probably correct.

My questions are :

  1. Do we need to break this nested ressource to be easier to map with the adapter ?
  2. If we keep the nested ressources, what’s the best way to handle this store id when we login? Make a specific rule in the adapter ? After successful login make a get request to get the :store_id?

Any ideas, critics, welcome