Jsonapi Resources

screenshot of Jsonapi Resources

A resource-focused Rails library for developing JSON:API compliant servers.

Overview:

JSONAPI::Resources (JR) is a gem that provides a framework for developing an API server that complies with the JSON:API specification. It focuses on defining resources, including their attributes and relationships, to ensure compliance with JSON:API. This gem works with Rails 5.1+ and offers custom routes, controllers, and serializers. JR resources can be based on ActiveRecord models or custom objects.

Features:

  • Compliance with JSON:API Specification: Ensures that the API server complies with the JSON:API specification.
  • Resource-focused Design: Emphasizes on defining resources, attributes, and relationships for API implementation.
  • Custom Routes, Controllers, and Serializers: Provides custom routes, controllers, and serializers for enhanced flexibility.
  • Support for ActiveRecord Models and Custom Objects: Resources can be backed by both ActiveRecord models and custom objects.