Introduction
API-only setup creates a Rails app that only serves data, not web pages. It is faster and simpler for backend services.
When building a backend that only sends JSON data to a frontend app.
When creating a service for mobile apps to get data.
When you want a lightweight server without views or assets.
When your frontend is handled by another framework like React or Vue.