Getting current session shop with shopify app gem/api gem and testing backend APIs

Hey there!

I’m building a web app with Shopify CLI Ruby/React. Got 2 queries:

  1. How do I get the current session shop object in Rails?

  2. How do you test the backend APIs that you write? I usually test it on postman, but with CLI, seems like it doesn’t work out of the box

Thanks!

Any luck finding an answer?