title: How to create API in rails 5?
body: <p>I am new to web service and Rails too. I have a doubt in creating API using rails 5. How do I create an API for a rails 5 application? I can find some tutorials for <strong>API only</strong> applications using rails 5. But I need both API and views in a single rails 5 application. How should I do that? </p>