All Projects → jsmestad → Jsonapi Consumer

jsmestad / Jsonapi Consumer

Licence: apache-2.0
Client framework for consuming JSONAPI services in Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Jsonapi Consumer

Apicasso
An abstract API design as a Rails-based mountable engine
Stars: ✭ 27 (-70.97%)
Mutual labels:  json-api
Mobx Jsonapi Store
JSON API Store for MobX
Stars: ✭ 52 (-44.09%)
Mutual labels:  json-api
Demo Laravel Json Api
Demo of JSON API integration with a Laravel Application
Stars: ✭ 68 (-26.88%)
Mutual labels:  json-api
Alembic
JSONAPI 1.0 Elixir library
Stars: ✭ 31 (-66.67%)
Mutual labels:  json-api
Dashboard Server
A JSON file RESTful API with authorization based on json-server
Stars: ✭ 48 (-48.39%)
Mutual labels:  json-api
Jsonapi
Swift Codable JSON:API framework
Stars: ✭ 53 (-43.01%)
Mutual labels:  json-api
Inquisitor jsonapi
JSON API Matchers for Inquisitor
Stars: ✭ 13 (-86.02%)
Mutual labels:  json-api
Bootstrapi
A better framework for building API with PHP. Built using Slim 3, Eloquent, Zend-ACL
Stars: ✭ 86 (-7.53%)
Mutual labels:  json-api
Jsonapi parameters
Rails-way to consume JSON:API input
Stars: ✭ 50 (-46.24%)
Mutual labels:  json-api
Videosniffer
视频嗅探服务(VideoSniffer API Service On Android)
Stars: ✭ 68 (-26.88%)
Mutual labels:  json-api
Grocery Cms Php Restful Api
Grocery-CMS-PHP-Restful-API is an online grocery shop. The project is developed by using PHP/MySQL/Slim Restful API. The project has powerful backend cms to manage grocery shop online. it has features like add items, remove items, update price, manage orders etc. Restful API ready to embed in Application using JSON data.
Stars: ✭ 36 (-61.29%)
Mutual labels:  json-api
Usermanager React Native
Login and Signup system with PHP/MySQL and Json in React native
Stars: ✭ 42 (-54.84%)
Mutual labels:  json-api
Jsonapi Client
JSON API (jsonapi.org) client for Python
Stars: ✭ 63 (-32.26%)
Mutual labels:  json-api
Server
Serve your Rubix ML models in production with scalable stand-alone model inference servers.
Stars: ✭ 30 (-67.74%)
Mutual labels:  json-api
Daptin
Daptin - Backend As A Service - GraphQL/JSON-API Headless CMS
Stars: ✭ 1,195 (+1184.95%)
Mutual labels:  json-api
Authnetjson
Library that abstracts Authorize.Net's JSON APIs. This includes the Advanced Integration Method (AIM), Automated Recurring Billing (ARB), Customer Information Manager (CIM), Transaction Reporting, Simple Integration Method (SIM), and Webhooks.
Stars: ✭ 14 (-84.95%)
Mutual labels:  json-api
Json Api Dart
JSON:API client for Dart/Flutter
Stars: ✭ 53 (-43.01%)
Mutual labels:  json-api
Importjsonapi
Use JSONPath to selectively extract data from any JSON or GraphQL API directly into Google Sheets.
Stars: ✭ 90 (-3.23%)
Mutual labels:  json-api
Jsonapiframework
JsonApiFramework is a fast, extensible, and portable .NET framework for the reading and writing of JSON API documents. Currently working on ApiFramework 1.0 which is a new framework that supports the many enhancements documented in the 2.0 milestone of this project while being media type agnostic but will support media types like {json:api} and GraphQL for serialization/deserialization purposes.
Stars: ✭ 85 (-8.6%)
Mutual labels:  json-api
Dictfier
Python library to convert/serialize class instances(Objects) both flat and nested into a dictionary data structure. It's very useful in converting Python Objects into JSON format
Stars: ✭ 67 (-27.96%)
Mutual labels:  json-api

JSONAPI::Consumer

An ActiveModel-compliant consumer framework for communicating with JSONAPI-based APIs.

CircleCI

Installation

Add this line to your application's Gemfile:

gem 'jsonapi-consumer', '~> 1.0'

And then execute:

$ bundle

Usage

It's suggested to create a base resource for the whole API that you can re-use.

class Base < JSONAPI::Consumer::Resource
  # self.connection_options = {} # Faraday connection options
  # self.json_key_format = :dasherized_key # (default: underscored_key)
  # self.route_format = :dasherized_route # (default: underscored_route)
  self.site = 'http://localhost:3000/api/'
end

Then inherit from that Base class for each resource defined in your API.

module Blog
  class Author < Base
    has_many :posts, class_name: 'Blog::Post'
  end

  class Post < Base
    has_one :user, class_name: 'Blog::User'
    has_many :comments, class_name: 'Blog::Comment'
  end

  class User < Base

  end

  class Comment < Base

  end
end

Contributing

  1. Fork it ( https://github.com/jsmestad/jsonapi-consumer/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Copyright & License

JSONAPI::Consumer is distributed under the Apache 2.0 License. See LICENSE.txt file for more information.

Version v1 is a rewrite is based on the excellent work by json_api_client v1.5.3.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].