© Alan Bradburne 2016

Alan Bradburne, Rails 5 Revealed, 10.1007/978-1-4842-1709-2_5

5. Rails API

Alan Bradburne

(1)Reading, UK

While Rails is generally used to develop web-based applications, the increasing requirement to build API-only services has resulted in many people using Rails to build apps that have no web front end at all.

While this is certainly possible, it means that there are often a lot of unused gems and middleware overhead, slowing it down and getting in the way.

In order to make API application development simpler, Rails 5 has merged the Rails API project into Rails.

Using Rails for API Servers

Back in 2004 when Rails was first released to the world, the connected world was a very different place.

Very few web sites offered API access, ...

Get Rails 5 Revealed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.