decidim-api 0.7.4 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +6 -2
- data/lib/decidim/api/test/type_context.rb +1 -1
- data/lib/decidim/api/version.rb +1 -1
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b57db66583d7c51860fb30a476345802a4abe7b4
|
4
|
+
data.tar.gz: 261f4d9214911be0f2c4ad2fc6663d3a16fcf622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6dc5fd7a241941601717ae95934f36998bd57103a0439db37468ba21ae3235d8527941f322ce38976ad0dc7d24fadadf8a3e882317afa26c579f9ccd4db66e6
|
7
|
+
data.tar.gz: 90d7151d601092ff47681f5c4fa45e578907556408f088fd0eeafab4a6d7cfa8daea5dab2d2ace0212fac432c49390cb3a41f1577978e1b6b7092588f0198dbc
|
data/README.md
CHANGED
@@ -3,14 +3,15 @@
|
|
3
3
|
This library exposes a [GraphQL](https://facebook.github.io/graphql/) API to programatically interact with the Decidim platform via HTTP.
|
4
4
|
|
5
5
|
## Usage
|
6
|
+
|
6
7
|
Including `decidim-api` will get expose two nice endpoints:
|
7
8
|
|
8
9
|
* `/api`: The main GraphQL endpoint that holds the actual API.
|
9
10
|
* `/api/docs`: Nicely-written docs of the entities of the API.
|
10
11
|
* `/api/grapiql`: A neat sandbox to interactively play with the API and its capabilities.
|
11
12
|
|
12
|
-
|
13
13
|
## Installation
|
14
|
+
|
14
15
|
Add this line to your application's Gemfile:
|
15
16
|
|
16
17
|
```ruby
|
@@ -18,12 +19,15 @@ gem 'decidim-api'
|
|
18
19
|
```
|
19
20
|
|
20
21
|
And then execute:
|
22
|
+
|
21
23
|
```bash
|
22
|
-
|
24
|
+
bundle
|
23
25
|
```
|
24
26
|
|
25
27
|
## Contributing
|
28
|
+
|
26
29
|
See [Decidim](https://github.com/decidim/decidim).
|
27
30
|
|
28
31
|
## License
|
32
|
+
|
29
33
|
See [Decidim](https://github.com/decidim/decidim).
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
shared_context "graphql type" do
|
3
|
+
shared_context "with a graphql type" do
|
4
4
|
let!(:current_organization) { create(:organization) }
|
5
5
|
let!(:current_user) { create(:user, organization: current_organization) }
|
6
6
|
let(:model) { OpenStruct.new({}) }
|
data/lib/decidim/api/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decidim-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josep Jaume Rey Peroy
|
@@ -10,42 +10,42 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: graphiql-rails
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.4.2
|
22
|
+
- - "<"
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: 1.4.5
|
22
25
|
type: :runtime
|
23
26
|
prerelease: false
|
24
27
|
version_requirements: !ruby/object:Gem::Requirement
|
25
28
|
requirements:
|
26
29
|
- - "~>"
|
27
30
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
31
|
+
version: 1.4.2
|
32
|
+
- - "<"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: 1.4.5
|
29
35
|
- !ruby/object:Gem::Dependency
|
30
|
-
name:
|
36
|
+
name: graphql
|
31
37
|
requirement: !ruby/object:Gem::Requirement
|
32
38
|
requirements:
|
33
39
|
- - "~>"
|
34
40
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
36
|
-
- - "<"
|
37
|
-
- !ruby/object:Gem::Version
|
38
|
-
version: 1.4.5
|
41
|
+
version: 1.6.0
|
39
42
|
type: :runtime
|
40
43
|
prerelease: false
|
41
44
|
version_requirements: !ruby/object:Gem::Requirement
|
42
45
|
requirements:
|
43
46
|
- - "~>"
|
44
47
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
46
|
-
- - "<"
|
47
|
-
- !ruby/object:Gem::Version
|
48
|
-
version: 1.4.5
|
48
|
+
version: 1.6.0
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: rack-cors
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,61 +75,61 @@ dependencies:
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: 0.9.2
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
|
-
name: decidim-
|
78
|
+
name: decidim-comments
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - '='
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: 0.8.0
|
84
84
|
type: :development
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - '='
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: 0.
|
90
|
+
version: 0.8.0
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: decidim-core
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
95
|
- - '='
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 0.
|
97
|
+
version: 0.8.0
|
98
98
|
type: :development
|
99
99
|
prerelease: false
|
100
100
|
version_requirements: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
102
|
- - '='
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
version: 0.
|
104
|
+
version: 0.8.0
|
105
105
|
- !ruby/object:Gem::Dependency
|
106
|
-
name: decidim-
|
106
|
+
name: decidim-dev
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
109
|
- - '='
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
111
|
+
version: 0.8.0
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
116
|
- - '='
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
118
|
+
version: 0.8.0
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
|
-
name: decidim-
|
120
|
+
name: decidim-participatory_processes
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - '='
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 0.
|
125
|
+
version: 0.8.0
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
130
|
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 0.
|
132
|
+
version: 0.8.0
|
133
133
|
description: API engine for decidim
|
134
134
|
email:
|
135
135
|
- josepjaume@gmail.com
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
version: '0'
|
181
181
|
requirements: []
|
182
182
|
rubyforge_project:
|
183
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.6.13
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: API engine for decidim
|