apicasso 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b791734eda31a1730d721b4856a1a6b67032dd572bb12d528fc71ef8f648148
|
4
|
+
data.tar.gz: 7a4c4ccec8cd4201e30e25a5e82b24e27ba76b1456d79baf01b2772bacda3139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514e3258e715bcb35f2cf707752e6b75c85ade8505c25031d9213e0c7898ff98a31742d178645c6f444be39e285a6c3e9eace03da253b96cc2787025a153e105
|
7
|
+
data.tar.gz: f32c53560c3592e2ec207a0d7856d48d39e8e468f7c5d4815c630adcfb78c1ac5dc2a910c6a282b895ecde26e75ae56ef371f7b95002041ba5518c357e387f40
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
<img src="https://raw.githubusercontent.com/ErvalhouS/APIcasso/master/APIcasso.png" width="300" />
|
1
|
+
<img src="https://raw.githubusercontent.com/ErvalhouS/APIcasso/master/APIcasso.png" width="300" /> [![Gem Version](https://badge.fury.io/rb/apicasso.svg)](https://badge.fury.io/rb/apicasso) [![Docs Coverage](https://inch-ci.org/github/autoforce/APIcasso.svg?branch=master)](https://inch-ci.org/github/autoforce/APIcasso.svg?branch=master) [![Maintainability](https://api.codeclimate.com/v1/badges/b58bbd6b9a0376f7cfc8/maintainability)](https://codeclimate.com/github/autoforce/APIcasso/maintainability) [![codecov](https://codecov.io/gh/autoforce/APIcasso/branch/master/graph/badge.svg)](https://codecov.io/gh/autoforce/APIcasso) [![Build Status](https://travis-ci.org/autoforce/APIcasso.svg?branch=master)](https://travis-ci.org/autoforce/APIcasso)
|
2
2
|
|
3
3
|
JSON API development can get boring and time consuming. If you think it through, every time you make one you use almost the same route structure, pointing to the same controller actions, with the same ordering, filtering and pagination features.
|
4
4
|
|
@@ -26,10 +26,8 @@ module Apicasso
|
|
26
26
|
# a hash of the request and the response
|
27
27
|
def register_api_request
|
28
28
|
Apicasso::Request.delay.create(api_key_id: @api_key.id,
|
29
|
-
|
30
|
-
|
31
|
-
response: response_hash
|
32
|
-
})
|
29
|
+
object: { request: request_hash,
|
30
|
+
response: response_hash })
|
33
31
|
end
|
34
32
|
|
35
33
|
# Request data built as a hash.
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Apicasso
|
4
4
|
# Controller to consume read-only data to be used on client's frontend
|
5
|
-
class CrudController < ApplicationController
|
5
|
+
class CrudController < Apicasso::ApplicationController
|
6
6
|
before_action :set_root_resource
|
7
7
|
before_action :set_object, except: %i[index schema create]
|
8
8
|
before_action :set_nested_resource, only: %i[nested_index]
|
data/lib/apicasso/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: apicasso
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fernando Bellincanta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-07
|
11
|
+
date: 2018-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|