Rails JSON API Tutorial – Using JSONAPI Resources Gem

rails json api tutorial
Standard

Rails JSON API Tutorial Introduction

In this Rails JSON API tutorial, we will discuss how to quickly build a JSON API that is JSONAPI spec compliant using Ruby on Rails and jsonapi-resources gem.

This tutorial assumes that you already have Ruby and Ruby on Rails installed on your computer and you already have a basic understanding how APIs work. This tutorial uses Ruby 2.1.2 and Rails 4.2.0.

JSONAPI spec is a specification for building APIs in JSON. The spec covers how a client should request that resources be fetched or modified, and how a server should respond to those requests.

Continue reading