© 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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.