Hi @thedanotto, I'm not sure I fully understand your question. What specifically are you trying to test? I think the authentication aspect would likely be separate and handled however you normally would (helper method in a controller spec to
sign_in a user, or similar).
Beyond that, I would expect that you would want to exercise your app, likely through controller specs, and make assertions about the shape of the JSON. You can do this by directly asserting against the returned JSON, or you can go a bit further if you're using schemas. See the Validating JSON Schemas with an RSpec Matcher post on Giant Robots for a summary of this approach.
Hope this helps, but let me know if you have more specific questions.